Class GiftedMultiMonthSubCourtesyEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.TwitchEvent
com.github.twitch4j.chat.events.AbstractChannelEvent
com.github.twitch4j.chat.events.channel.GiftedMultiMonthSubCourtesyEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
,MirrorableEvent
@Unofficial
public final class GiftedMultiMonthSubCourtesyEvent
extends AbstractChannelEvent
implements MirrorableEvent
This event occurs when a recipient of a multi-month gift sub
enters a new month of the subscription, and shares a
re-subscription message, despite no additional monetary
transaction accompanying their message.
Webchat shows these events with this accompanying text:
N month Gift Subscription courtesy of GIFTER_DISPLAY_NAME has entered month M.
The parameters specific to this event are not officially documented.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The cumulative number of months the user has been subscribed to this channel.The user that originally gifted the multi-month gift subscription.The number of months that were originally gifted as part of the multi-month subscription.The user-specified message attached to this notification.Raw message event.The gift month that is being redeemed.The tier of the multi-month gifted subscription.getUser()
The gift recipient that is sending this resub message.int
hashCode()
boolean
Whether the original multi-month gift was done by an anonymous user.toString()
Methods inherited from class com.github.twitch4j.chat.events.AbstractChannelEvent
ban, getChannel, timeout, unban
Methods inherited from class com.github.twitch4j.chat.events.TwitchEvent
getTwitchChat
Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.twitch4j.chat.events.channel.MirrorableEvent
getSourceBadgeInfo, getSourceBadges, getSourceChannelId, getSourceMessageId, getSourceNoticeType, isMirrored
-
Constructor Details
-
GiftedMultiMonthSubCourtesyEvent
Event Constructor- Parameters:
event
- the raw message event
-
-
Method Details
-
getMessageEvent
Raw message event.- Specified by:
getMessageEvent
in interfaceMirrorableEvent
- Returns:
- the raw message event
-
getUser
The gift recipient that is sending this resub message. -
getMessage
The user-specified message attached to this notification. -
getSubscriptionPlan
The tier of the multi-month gifted subscription. -
isWasAnonymous
public boolean isWasAnonymous()Whether the original multi-month gift was done by an anonymous user. -
getGifter
The user that originally gifted the multi-month gift subscription. -
getGiftMonths
The number of months that were originally gifted as part of the multi-month subscription. -
getRedeemedMonth
The gift month that is being redeemed. -
getCumulativeMonths
The cumulative number of months the user has been subscribed to this channel. -
toString
- Overrides:
toString
in classAbstractChannelEvent
-
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-