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, unbanMethods inherited from class com.github.twitch4j.chat.events.TwitchEvent
getTwitchChatMethods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediatorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getMessageEventin interfaceMirrorableEvent- Returns:
- the raw message event
-
getUser
The user that is upgrading their subscription. -
getSubscriptionPlan
The new subscription plan of the user. -
equals
- Overrides:
equalsin classAbstractChannelEvent
-
canEqual
- Overrides:
canEqualin classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractChannelEvent
-
toString
- Overrides:
toStringin classAbstractChannelEvent
-