Class ChannelSubscriptionGiftEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
com.github.twitch4j.eventsub.events.ChannelSubscriptionGiftEvent
public class ChannelSubscriptionGiftEvent extends EventSubUserChannelEvent
-
Constructor Summary
Constructors Constructor Description ChannelSubscriptionGiftEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)@Nullable java.lang.IntegergetCumulativeTotal()The number of subscriptions gifted by this user in the channel.com.github.twitch4j.common.enums.SubscriptionPlangetTier()The tier of subscriptions in the subscription gift.java.lang.IntegergetTotal()The number of subscriptions in the subscription gift.inthashCode()java.lang.StringtoString()Methods inherited from class com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName, getUserId, getUserLogin, getUserNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChannelSubscriptionGiftEvent
public ChannelSubscriptionGiftEvent()
-
-
Method Details
-
getTier
public com.github.twitch4j.common.enums.SubscriptionPlan getTier()The tier of subscriptions in the subscription gift. -
getTotal
public java.lang.Integer getTotal()The number of subscriptions in the subscription gift. -
getCumulativeTotal
@Nullable public @Nullable java.lang.Integer 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. -
toString
public java.lang.String toString()- Overrides:
toStringin classEventSubUserChannelEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classEventSubUserChannelEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classEventSubUserChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classEventSubUserChannelEvent
-