Class PayForwardEvent
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.PayForwardEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
@Unofficial public final class PayForwardEvent extends AbstractChannelEvent
Calls when a user pays forward a gift.
-
Constructor Summary
Constructors Constructor Description PayForwardEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, com.github.twitch4j.common.events.domain.EventUser priorGifter, com.github.twitch4j.common.events.domain.EventUser recipient)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.EventUsergetPriorGifter()The previous user that gifted to this one, if not anonymous.com.github.twitch4j.common.events.domain.EventUsergetRecipient()The user that is receiving this gift, if it is not for the community at-large.com.github.twitch4j.common.events.domain.EventUsergetUser()The user that is paying forward their gift.inthashCode()booleanisCommunityPayForward()java.lang.StringtoString()booleanwasPriorGifterAnonymous()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
-
PayForwardEvent
public PayForwardEvent(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, com.github.twitch4j.common.events.domain.EventUser priorGifter, com.github.twitch4j.common.events.domain.EventUser recipient)Event Constructor- Parameters:
channel- The channel that this event originates from.user- The user that is paying forward their gift.priorGifter- The previous user that gifted to this one, if not anonymous.recipient- The user that is receiving this gift, if it is not for the community at-large.
-
-
Method Details
-
wasPriorGifterAnonymous
public boolean wasPriorGifterAnonymous() -
isCommunityPayForward
public boolean isCommunityPayForward() -
getUser
public com.github.twitch4j.common.events.domain.EventUser getUser()The user that is paying forward their gift. -
getPriorGifter
public com.github.twitch4j.common.events.domain.EventUser getPriorGifter()The previous user that gifted to this one, if not anonymous. -
getRecipient
public com.github.twitch4j.common.events.domain.EventUser getRecipient()The user that is receiving this gift, if it is not for the community at-large. -
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
-