Skip to content

Commit

Permalink
Merge pull request #30 from LiveXenon/master
Browse files Browse the repository at this point in the history
added likeCount field to User2 PublicMetrics
  • Loading branch information
takke authored Jan 4, 2024
2 parents a4ef58c + f7dc937 commit 94e679b
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 94e679b

Please sign in to comment.