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
@Unofficial public final class PrimeSubUpgradeEvent extends AbstractChannelEvent
Called when a user upgrades from a prime sub to a tiered subscription.
-
Constructor Summary
Constructors Constructor Description PrimeSubUpgradeEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, com.github.twitch4j.common.enums.SubscriptionPlan subscriptionPlan)Constructor -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)com.github.twitch4j.common.enums.SubscriptionPlangetSubscriptionPlan()The new subscription plan of the user.com.github.twitch4j.common.events.domain.EventUsergetUser()The user that is upgrading their subscription.inthashCode()java.lang.StringtoString()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, wait
-
Constructor Details
-
PrimeSubUpgradeEvent
public PrimeSubUpgradeEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, com.github.twitch4j.common.enums.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
public com.github.twitch4j.common.events.domain.EventUser getUser()The user that is upgrading their subscription. -
getSubscriptionPlan
public com.github.twitch4j.common.enums.SubscriptionPlan getSubscriptionPlan()The new subscription plan of the user. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classAbstractChannelEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractChannelEvent
-
toString
public java.lang.String toString()- Overrides:
toStringin classAbstractChannelEvent
-