Class GiftSubUpgradeEvent
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.GiftSubUpgradeEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Called when a user upgrades to a paid subscription from previously being gifted a subscription.
-
Constructor Summary
ConstructorDescriptionGiftSubUpgradeEvent
(EventChannel channel, EventUser upgradingUser, String promoName, Integer promoGiftTotal, String gifterLogin, String gifterName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The login of the user who gifted the subscription, if applicable.The display name of the user who gifted the subscription, if applicable.The number of gifts the gifter has given during the promo indicated bygetPromoName()
.The subscriptions promo, if any, that is ongoing; e.g.The user that is upgrading their subscription.int
hashCode()
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
-
Constructor Details
-
GiftSubUpgradeEvent
public GiftSubUpgradeEvent(EventChannel channel, EventUser upgradingUser, String promoName, Integer promoGiftTotal, String gifterLogin, String gifterName) Constructor- Parameters:
channel
- the channel where the event took placeupgradingUser
- the user that is upgrading their subscriptionpromoName
- the ongoing subscriptions promo, if applicablepromoGiftTotal
- the number of gifts the gifter has given during the promogifterLogin
- the login of the user who gifted the subscription, if applicablegifterName
- the display name of the user who gifted the subscription, if applicable
-
-
Method Details
-
getUpgradingUser
The user that is upgrading their subscription. -
getPromoName
The subscriptions promo, if any, that is ongoing; e.g. Subtember 2018. -
getPromoGiftTotal
The number of gifts the gifter has given during the promo indicated bygetPromoName()
. -
getGifterLogin
The login of the user who gifted the subscription, if applicable. -
getGifterName
The display name of the user who gifted the subscription, if applicable. -
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-
toString
- Overrides:
toString
in classAbstractChannelEvent
-