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,MirrorableEvent
Called when a user upgrades to a paid subscription from previously being gifted a subscription.
-
Constructor Summary
ConstructorsConstructorDescriptionGiftSubUpgradeEvent(IRCMessageEvent event, EventChannel channel, EventUser upgradingUser, String promoName, Integer promoGiftTotal, String gifterLogin, String gifterName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe login of the user who gifted the subscription, if applicable.The display name of the user who gifted the subscription, if applicable.Raw Message EventThe 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()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
-
GiftSubUpgradeEvent
@Internal public GiftSubUpgradeEvent(IRCMessageEvent event, EventChannel channel, EventUser upgradingUser, String promoName, Integer promoGiftTotal, String gifterLogin, String gifterName) Constructor- Parameters:
event- the raw message eventchannel- 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
-
getMessageEvent
Raw Message Event- Specified by:
getMessageEventin interfaceMirrorableEvent- Returns:
- the raw message event
-
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:
equalsin classAbstractChannelEvent
-
canEqual
- Overrides:
canEqualin classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractChannelEvent
-
toString
- Overrides:
toStringin classAbstractChannelEvent
-