Class PayForwardEvent

java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
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 Details

    • PayForwardEvent

      public PayForwardEvent(EventChannel channel, EventUser user, EventUser priorGifter, 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 EventUser getUser()
      The user that is paying forward their gift.
    • getPriorGifter

      public EventUser getPriorGifter()
      The previous user that gifted to this one, if not anonymous.
    • getRecipient

      public EventUser getRecipient()
      The user that is receiving this gift, if it is not for the community at-large.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractChannelEvent
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class AbstractChannelEvent
    • hashCode

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

      public String toString()
      Overrides:
      toString in class AbstractChannelEvent