Class PrimeGiftReceivedEvent
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.PrimeGiftReceivedEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Called when a user receives a gift from a Prime member.
-
Constructor Summary
ConstructorDescriptionPrimeGiftReceivedEvent
(EventChannel channel, EventUser gifter, String giftName, String recipientName) 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
-
PrimeGiftReceivedEvent
public PrimeGiftReceivedEvent(EventChannel channel, EventUser gifter, String giftName, String recipientName) Event Constructor- Parameters:
channel
- The channel that this event originates from.gifter
- The user giving the gift.giftName
- The name of the gift package.recipientName
- The user receiving the gift.
-
-
Method Details
-
getGifter
The user giving the gift. -
getGiftName
The name of the gift package. -
getRecipientName
The display name of the user receiving the gift. -
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-
toString
- Overrides:
toString
in classAbstractChannelEvent
-