Class ChannelSubscriptionMessageEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
com.github.twitch4j.eventsub.events.ChannelSubscriptionMessageEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The total number of months the user has been subscribed to the channel.The month duration of the subscription.An object that contains the re-subscription message and emote information needed to recreate the message.@Nullable Integer
The number of consecutive months the user’s current subscription has been active.getTier()
The tier of the user’s subscription.int
hashCode()
toString()
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName, getUserId, getUserLogin, getUserName
-
Constructor Details
-
ChannelSubscriptionMessageEvent
public ChannelSubscriptionMessageEvent()
-
-
Method Details
-
getTier
The tier of the user’s subscription. -
getMessage
An object that contains the re-subscription message and emote information needed to recreate the message. -
getCumulativeMonths
The total number of months the user has been subscribed to the channel. -
getStreakMonths
The number of consecutive months the user’s current subscription has been active. This value is null if the user has opted out of sharing this information. -
getDurationMonths
The month duration of the subscription. -
toString
- Overrides:
toString
in classEventSubUserChannelEvent
-
equals
- Overrides:
equals
in classEventSubUserChannelEvent
-
canEqual
- Overrides:
canEqual
in classEventSubUserChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEventSubUserChannelEvent
-