Class ChannelSubscribeEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
com.github.twitch4j.eventsub.events.ChannelSubscribeEvent
public class ChannelSubscribeEvent extends EventSubUserChannelEvent
-
Constructor Summary
Constructors Constructor Description ChannelSubscribeEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)com.github.twitch4j.common.enums.SubscriptionPlangetTier()The tier of the subscription.inthashCode()java.lang.BooleanisGift()Whether the subscription is a gift.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
-
ChannelSubscribeEvent
public ChannelSubscribeEvent()
-
-
Method Details
-
getTier
public com.github.twitch4j.common.enums.SubscriptionPlan getTier()The tier of the subscription.Prime is treated as 1000, at the time of writing.
-
isGift
public java.lang.Boolean isGift()Whether the subscription is a gift. -
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
-