Class DirectCheerEvent
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.CheerEvent
com.github.twitch4j.chat.events.channel.DirectCheerEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent,ReplyableEvent
This event gets called when a user does a direct cheer in an eligible channel for this experiment.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.twitch4j.chat.events.channel.CheerEvent
getFlags, getMessage, getMessageEvent, getSubscriberMonths, getSubscriptionTier, getUserMethods 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.ReplyableEvent
getChannel, reply
-
Constructor Details
-
DirectCheerEvent
Event Constructor- Parameters:
event- The raw message event.
-
-
Method Details
-
getAmount
- Returns:
- the amount of this direct cheer, before the revenue split, and in arbitrary currency and decimal places.
-
getCurrency
- Returns:
- the parsed currency used in this direct cheer, or throws if unknown.
-
getMonetaryValue
- Returns:
- the parsed monetary value that was directly cheered. For example, $50 is parsed to 50
-
getSystemMessage
- Returns:
- the twitch notification text for this event (which is distinct from the user's message attached to the cheer).
-
getBits
Deprecated.direct cheer values are not easily translatable into bit amounts, especially for non-USD currencies.Amount of Bits- Overrides:
getBitsin classCheerEvent
-
getCheer
The parsed direct cheer payment information. -
toString
- Overrides:
toStringin classCheerEvent
-
equals
- Overrides:
equalsin classCheerEvent
-
canEqual
- Overrides:
canEqualin classCheerEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classCheerEvent
-