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 boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    com.github.twitch4j.common.events.domain.EventUser getGifter()
    The user giving the gift.
    java.lang.String getGiftName()
    The name of the gift package.
    java.lang.String getRecipientName()
    The display name of the user receiving the gift.
    int hashCode()  
    java.lang.String toString()  

    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
  • 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:
      equals in class AbstractChannelEvent
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
      Overrides:
      canEqual in class AbstractChannelEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractChannelEvent
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class AbstractChannelEvent