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
@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
ConstructorDescriptionDirectCheerEvent
(IRCMessageEvent event) Deprecated.This experiment is no longer running. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Deprecated.boolean
Deprecated.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.int
hashCode()
Deprecated.toString()
Deprecated.Methods inherited from class com.github.twitch4j.chat.events.channel.CheerEvent
getFlags, getMessage, getMessageEvent, getSubscriberMonths, getSubscriptionTier, getUser
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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getBits
in classCheerEvent
-
getCheer
Deprecated.The parsed direct cheer payment information. -
toString
Deprecated.- Overrides:
toString
in classCheerEvent
-
equals
Deprecated.- Overrides:
equals
in classCheerEvent
-
canEqual
Deprecated.- Overrides:
canEqual
in classCheerEvent
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCode
in classCheerEvent
-
ChannelMessageEvent.getElevatedChatPayment()