Skip to content

Commit

Permalink
add isRetweet
Browse files Browse the repository at this point in the history
  • Loading branch information
takke committed Apr 2, 2023
1 parent 5487317 commit 90ebe30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions twitter4j-v2-support/src/main/kotlin/twitter4j/Tweet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ data class Tweet(
}
}

val isRetweet: Boolean
get() = retweetId != null

override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
Expand Down

0 comments on commit 90ebe30

Please sign in to comment.