Class ChannelSubscriptionGiftEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
com.github.twitch4j.eventsub.events.ChannelSubscriptionGiftEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@Nullable Integer
The number of subscriptions gifted by this user in the channel.getTier()
The tier of subscriptions in the subscription gift.getTotal()
The number of subscriptions in the subscription gift.int
hashCode()
Whether the subscription gift was anonymous.toString()
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName, getUserId, getUserLogin, getUserName
-
Constructor Details
-
ChannelSubscriptionGiftEvent
public ChannelSubscriptionGiftEvent()
-
-
Method Details
-
getTier
The tier of subscriptions in the subscription gift. -
getTotal
The number of subscriptions in the subscription gift. -
getCumulativeTotal
The number of subscriptions gifted by this user in the channel. This value is null for anonymous gifts or if the gifter has opted out of sharing this information. -
isAnonymous
Whether the subscription gift was anonymous. -
toString
- Overrides:
toString
in classEventSubUserChannelEvent
-
equals
- Overrides:
equals
in classEventSubUserChannelEvent
-
canEqual
- Overrides:
canEqual
in classEventSubUserChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEventSubUserChannelEvent
-