Class SubGift
java.lang.Object
com.github.twitch4j.eventsub.domain.chat.SubGift
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@Nullable String
The ID of the associated community gift.@Nullable Integer
The amount of gifts the gifter has given in this channel.The number of months the subscription is for.The user ID of the subscription gift recipient.The user login of the subscription gift recipient.The user name of the subscription gift recipient.The type of subscription plan being used.int
hashCode()
toString()
-
Constructor Details
-
SubGift
public SubGift()
-
-
Method Details
-
getDurationMonths
The number of months the subscription is for. -
getCumulativeTotal
The amount of gifts the gifter has given in this channel. Null if anonymous. -
getRecipientUserId
The user ID of the subscription gift recipient. -
getRecipientUserName
The user name of the subscription gift recipient. -
getRecipientUserLogin
The user login of the subscription gift recipient. -
getSubTier
The type of subscription plan being used.Cannot be
SubscriptionPlan.TWITCH_PRIME
. -
getCommunityGiftId
The ID of the associated community gift. Null if not associated with a community gift.- See Also:
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-