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
@Unofficial public final class PrimeGiftReceivedEvent extends AbstractChannelEvent
Called when a user receives a gift from a Prime member.
-
Constructor Summary
Constructors Constructor Description PrimeGiftReceivedEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser gifter, java.lang.String giftName, java.lang.String recipientName)Event Constructor -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)com.github.twitch4j.common.events.domain.EventUsergetGifter()The user giving the gift.java.lang.StringgetGiftName()The name of the gift package.java.lang.StringgetRecipientName()The display name of the user receiving the gift.inthashCode()java.lang.StringtoString()Methods 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, wait
-
Constructor Details
-
PrimeGiftReceivedEvent
public PrimeGiftReceivedEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser gifter, java.lang.String giftName, java.lang.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
public com.github.twitch4j.common.events.domain.EventUser getGifter()The user giving the gift. -
getGiftName
public java.lang.String getGiftName()The name of the gift package. -
getRecipientName
public java.lang.String getRecipientName()The display name of the user receiving the gift. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classAbstractChannelEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractChannelEvent
-
toString
public java.lang.String toString()- Overrides:
toStringin classAbstractChannelEvent
-