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
public final class GiftSubUpgradeEvent extends AbstractChannelEvent
Called when a user upgrades to a paid subscription from previously being gifted a subscription.
-
Constructor Summary
Constructors Constructor Description GiftSubUpgradeEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser upgradingUser, java.lang.String promoName, java.lang.Integer promoGiftTotal, java.lang.String gifterLogin, java.lang.String gifterName)Constructor -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetGifterLogin()The login of the user who gifted the subscription, if applicable.java.lang.StringgetGifterName()The display name of the user who gifted the subscription, if applicable.java.lang.IntegergetPromoGiftTotal()The number of gifts the gifter has given during the promo indicated bygetPromoName().java.lang.StringgetPromoName()The subscriptions promo, if any, that is ongoing; e.g.com.github.twitch4j.common.events.domain.EventUsergetUpgradingUser()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
-
GiftSubUpgradeEvent
public GiftSubUpgradeEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser upgradingUser, java.lang.String promoName, java.lang.Integer promoGiftTotal, java.lang.String gifterLogin, java.lang.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
public com.github.twitch4j.common.events.domain.EventUser getUpgradingUser()The user that is upgrading their subscription. -
getPromoName
public java.lang.String getPromoName()The subscriptions promo, if any, that is ongoing; e.g. Subtember 2018. -
getPromoGiftTotal
public java.lang.Integer getPromoGiftTotal()The number of gifts the gifter has given during the promo indicated bygetPromoName(). -
getGifterLogin
public java.lang.String getGifterLogin()The login of the user who gifted the subscription, if applicable. -
getGifterName
public java.lang.String getGifterName()The display name of the user who gifted the subscription, if applicable. -
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
-