Class RewardGiftEvent
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.RewardGiftEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Called when a monetary event (e.g. sub gift or cheer) results in rewards (e.g. emotes) being shared with others.
-
Constructor Summary
ConstructorDescriptionRewardGiftEvent
(EventChannel channel, EventUser user, String domain, String triggerType, Integer selectedCount, Integer totalRewardCount, Integer triggerAmount) Event Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The domain of the rewards being gifted (e.g.The number of gifted rewards as part of the primary selection.The total number of rewards being gifted (e.g.The number of instances of the trigger (e.g.The type of monetary event that triggered the reward gift (e.g., "SUBGIFT", "CHEER").getUser()
The user that triggered this event.int
hashCode()
toString()
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
-
RewardGiftEvent
public RewardGiftEvent(EventChannel channel, EventUser user, String domain, String triggerType, Integer selectedCount, Integer totalRewardCount, Integer triggerAmount) Event Constructor- Parameters:
channel
- The channel that this event originates from.user
- The user that triggered this event.domain
- The domain of the rewards being gifted.triggerType
- The type of monetary event that triggered the reward gift.selectedCount
- The number of gifted rewards as part of the primary selection.totalRewardCount
- The total number of rewards being gifted.triggerAmount
- The number of instances of the trigger.
-
-
Method Details
-
getUser
The user that triggered this event. -
getDomain
The domain of the rewards being gifted (e.g. "pride_megacommerce_2020"). -
getTriggerType
The type of monetary event that triggered the reward gift (e.g., "SUBGIFT", "CHEER"). -
getSelectedCount
The number of gifted rewards as part of the primary selection. -
getTotalRewardCount
The total number of rewards being gifted (e.g. 5 emotes). -
getTriggerAmount
The number of instances of the trigger (e.g. 1 sub gift or 300 bits). -
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-
toString
- Overrides:
toString
in classAbstractChannelEvent
-