Class Resubscription
java.lang.Object
com.github.twitch4j.eventsub.domain.chat.Resubscription
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe total number of months the user has subscribed.int@Nullable StringOptional: The user ID of the subscription gifter.@Nullable StringOptional: The user login of the subscription gifter.@Nullable StringOptional: The user name of the subscription gifter.@Nullable IntegerOptional: The number of consecutive months the user has subscribed.The type of subscription plan being used.inthashCode()isGift()Whether or not the resub was a result of a gift.@Nullable BooleanOptional: 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
-