Class DonationEvent
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.DonationEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
This event gets called when a user receives a donation from any source.
-
Constructor Summary
ConstructorDescriptionDonationEvent
(EventChannel channel, EventUser user, String source, Currency currency, Double amount, String message) 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
-
DonationEvent
public DonationEvent(EventChannel channel, EventUser user, String source, Currency currency, Double amount, String message) Event Constructor- Parameters:
channel
- The channel that this event originates from.user
- The user who triggered the event.source
- The source, where information was received from.currency
- The currency, that money was donated in.amount
- The donated amount.message
- The plain text of the message.
-
-
Method Details
-
toString
- Overrides:
toString
in classAbstractChannelEvent
-
getUser
User -
getSource
Donation Source -
getCurrency
Donation Currency -
getAmount
Donation Amount -
getMessage
Donation Message -
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-