Class Resubscription
java.lang.Object
com.github.twitch4j.eventsub.domain.chat.Resubscription
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The total number of months the user has subscribed.int
@Nullable String
Optional: The user ID of the subscription gifter.@Nullable String
Optional: The user login of the subscription gifter.@Nullable String
Optional: The user name of the subscription gifter.@Nullable Integer
Optional: The number of consecutive months the user has subscribed.The type of subscription plan being used.int
hashCode()
isGift()
Whether or not the resub was a result of a gift.@Nullable Boolean
Optional: Whether or not the gift was anonymous.isPrime()
Indicates if the subscription was obtained through Amazon Prime.toString()
-
Constructor Details
-
Resubscription
public Resubscription()
-
-
Method Details
-
getDurationMonths
public int getDurationMonths()- Returns:
- the number of months the subscription is for.
-
getCumulativeMonths
The total number of months the user has subscribed. -
getStreakMonths
Optional: The number of consecutive months the user has subscribed. -
getSubTier
The type of subscription plan being used.Does not contain
SubscriptionPlan.TWITCH_PRIME
; useisPrime()
instead. -
isPrime
Indicates if the subscription was obtained through Amazon Prime. -
isGift
Whether or not the resub was a result of a gift. -
isGifterAnonymous
Optional: Whether or not the gift was anonymous. -
getGifterUserId
Optional: The user ID of the subscription gifter. Null if anonymous. -
getGifterUserName
Optional: The user name of the subscription gifter. Null if anonymous. -
getGifterUserLogin
Optional: The user login of the subscription gifter. Null if anonymous. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-