Klasse GiftSubscriptionsEvent
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.GiftSubscriptionsEvent
- Alle implementierten Schnittstellen:
com.github.philippheuer.events4j.api.domain.IEvent
This event gets called when a user gifts x subscriptions to *random* users in chat.
This event will be called simultaneously with the chat announcement, not necessarily when the user presses the subscription button.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGiftSubscriptionsEvent(EventChannel channel, EventUser user, String subscriptionPlan, Integer count, Integer totalCount) Event Constructor -
Methodenübersicht
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
-
GiftSubscriptionsEvent
public GiftSubscriptionsEvent(EventChannel channel, EventUser user, String subscriptionPlan, Integer count, Integer totalCount) Event Constructor- Parameter:
channel- The channel that this event originates from.user- The user that gifted the subscriptionssubscriptionPlan- The subscription plancount- The total amount of subs giftedtotalCount- The amount the user gifted in total (all time)
-
-
Methodendetails
-
getUser
Event Target User -
getSubscriptionPlan
The Subscription -
getCount
X subscriptions gifted -
getTotalCount
X subscriptions gifted totally -
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
-