Skip to content

Commit

Permalink
added likeCount field to User2 PublicMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveXenon authored Dec 27, 2023
1 parent a4ef58c commit f7dc937
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions twitter4j-v2-support/src/main/kotlin/twitter4j/User2.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ data class User2(
val followersCount: Int,
val followingCount: Int,
val tweetCount: Int,
val listedCount: Int
val listedCount: Int,
val likeCount: Int
) {

constructor(json: JSONObject) : this(
followersCount = ParseUtil.getInt("followers_count", json),
followingCount = ParseUtil.getInt("following_count", json),
tweetCount = ParseUtil.getInt("tweet_count", json),
listedCount = ParseUtil.getInt("listed_count", json)
listedCount = ParseUtil.getInt("listed_count", json),
likeCount = ParseUtil.getInt("like_count", json)
)

}
Expand Down

0 comments on commit f7dc937

Please sign in to comment.