Class 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
- All Implemented Interfaces:
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.
-
Constructor Summary
ConstructorDescriptionGiftSubscriptionsEvent
(EventChannel channel, EventUser user, String subscriptionPlan, Integer count, Integer totalCount) Event Constructor -
Method Summary
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
-
GiftSubscriptionsEvent
public GiftSubscriptionsEvent(EventChannel channel, EventUser user, String subscriptionPlan, Integer count, Integer totalCount) Event Constructor- Parameters:
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)
-
-
Method Details
-
getUser
Event Target User -
getSubscriptionPlan
The Subscription -
getCount
X subscriptions gifted -
getTotalCount
X subscriptions gifted totally -
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-
toString
- Overrides:
toString
in classAbstractChannelEvent
-