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,MirrorableEvent,ReplyableEvent
@Unofficial
@Deprecated
@ScheduledForRemoval(inVersion="2.0.0")
public final class DirectCheerEvent
extends CheerEvent
Deprecated.
This event gets called when a user does a direct cheer in an eligible channel for this experiment.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDirectCheerEvent(IRCMessageEvent event) Deprecated.This experiment is no longer running. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.booleanDeprecated.Deprecated.getBits()Deprecated.direct cheer values are not easily translatable into bit amounts, especially for non-USD currencies.getCheer()Deprecated.The parsed direct cheer payment information.Deprecated.Deprecated.Deprecated.inthashCode()Deprecated.toString()Deprecated.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.MirrorableEvent
getSourceBadgeInfo, getSourceBadges, getSourceChannelId, getSourceMessageId, getSourceNoticeType, isMirroredMethods inherited from interface com.github.twitch4j.chat.events.channel.ReplyableEvent
getChannel, reply
-
Constructor Details
-
DirectCheerEvent
Deprecated.This experiment is no longer running.Event Constructor- Parameters:
event- The raw message event.
-
-
Method Details
-
getAmount
Deprecated.- Returns:
- the amount of this direct cheer, before the revenue split, and in arbitrary currency and decimal places.
-
getCurrency
Deprecated.- Returns:
- the parsed currency used in this direct cheer, or throws if unknown.
-
getMonetaryValue
Deprecated.- Returns:
- the parsed monetary value that was directly cheered. For example, $50 is parsed to 50
-
getSystemMessage
Deprecated.- 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
Deprecated.The parsed direct cheer payment information. -
toString
Deprecated.- Overrides:
toStringin classCheerEvent
-
equals
Deprecated.- Overrides:
equalsin classCheerEvent
-
canEqual
Deprecated.- Overrides:
canEqualin classCheerEvent
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classCheerEvent
-
ChannelMessageEvent.getElevatedChatPayment()