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
Called when a user upgrades from a prime sub to a tiered subscription.
-
Constructor Summary
ConstructorDescriptionPrimeSubUpgradeEvent
(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
-
Constructor Details
-
PrimeSubUpgradeEvent
public PrimeSubUpgradeEvent(EventChannel channel, EventUser user, SubscriptionPlan subscriptionPlan) Constructor- Parameters:
channel
- the channel where the event took placeuser
- the user that is upgrading their subscriptionsubscriptionPlan
- the new subscription plan of the user
-
-
Method Details
-
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
-