Klasse 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
- Alle implementierten Schnittstellen:
com.github.philippheuer.events4j.api.domain.IEvent
Called when a user upgrades to a paid subscription from previously being gifted a subscription.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGiftSubUpgradeEvent(EventChannel channel, EventUser upgradingUser, String promoName, Integer promoGiftTotal, String gifterLogin, String gifterName) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanbooleanThe 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.inthashCode()toString()Von Klasse geerbte Methoden com.github.twitch4j.chat.events.AbstractChannelEvent
ban, getChannel, timeout, unbanVon Klasse geerbte Methoden com.github.twitch4j.chat.events.TwitchEvent
getTwitchChatVon Klasse geerbte Methoden com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Konstruktordetails
-
GiftSubUpgradeEvent
public GiftSubUpgradeEvent(EventChannel channel, EventUser upgradingUser, String promoName, Integer promoGiftTotal, String gifterLogin, String gifterName) Constructor- Parameter:
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
-
-
Methodendetails
-
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
- Setzt außer Kraft:
equalsin KlasseAbstractChannelEvent
-
canEqual
- Setzt außer Kraft:
canEqualin KlasseAbstractChannelEvent
-
hashCode
public int hashCode()- Setzt außer Kraft:
hashCodein KlasseAbstractChannelEvent
-
toString
- Setzt außer Kraft:
toStringin KlasseAbstractChannelEvent
-