Class PrimeSubUpgradeEvent
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.PrimeSubUpgradeEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
,MirrorableEvent
@Unofficial
public final class PrimeSubUpgradeEvent
extends AbstractChannelEvent
implements MirrorableEvent
Called when a user upgrades from a prime sub to a tiered subscription.
-
Constructor Summary
ConstructorsConstructorDescriptionPrimeSubUpgradeEvent
(IRCMessageEvent event, EventChannel channel, EventUser user, SubscriptionPlan subscriptionPlan) Constructor -
Method Summary
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
-
PrimeSubUpgradeEvent
@Internal public PrimeSubUpgradeEvent(IRCMessageEvent event, EventChannel channel, EventUser user, SubscriptionPlan subscriptionPlan) Constructor- Parameters:
event
- the raw message eventchannel
- the channel where the event took placeuser
- the user that is upgrading their subscriptionsubscriptionPlan
- the new subscription plan of the user
-
-
Method Details
-
getMessageEvent
Raw Message Event- Specified by:
getMessageEvent
in interfaceMirrorableEvent
- Returns:
- the raw message event
-
getUser
The user that is upgrading their subscription. -
getSubscriptionPlan
The new subscription plan of the user. -
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-
toString
- Overrides:
toString
in classAbstractChannelEvent
-