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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable IntegerThe 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.inthashCode()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:
toStringin classEventSubUserChannelEvent
-
equals
- Overrides:
equalsin classEventSubUserChannelEvent
-
canEqual
- Overrides:
canEqualin classEventSubUserChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classEventSubUserChannelEvent
-