Class DonationEvent

java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent

public final class DonationEvent
extends AbstractChannelEvent
This event gets called when a user receives a donation from any source.
  • Constructor Summary

    Constructors
    Constructor Description
    DonationEvent​(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, java.lang.String source, java.util.Currency currency, java.lang.Double amount, java.lang.String message)
    Event Constructor
  • Method Summary

    Modifier and Type Method Description
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.Double getAmount()
    Donation Amount
    java.util.Currency getCurrency()
    Donation Currency
    java.lang.String getMessage()
    Donation Message
    java.lang.String getSource()
    Donation Source
    com.github.twitch4j.common.events.domain.EventUser getUser()
    User
    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

    • DonationEvent

      public DonationEvent​(com.github.twitch4j.common.events.domain.EventChannel channel, com.github.twitch4j.common.events.domain.EventUser user, java.lang.String source, java.util.Currency currency, java.lang.Double amount, java.lang.String message)
      Event Constructor
      Parameters:
      channel - The channel that this event originates from.
      user - The user who triggered the event.
      source - The source, where information was received from.
      currency - The currency, that money was donated in.
      amount - The donated amount.
      message - The plain text of the message.
  • Method Details

    • toString

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

      public com.github.twitch4j.common.events.domain.EventUser getUser()
      User
    • getSource

      public java.lang.String getSource()
      Donation Source
    • getCurrency

      public java.util.Currency getCurrency()
      Donation Currency
    • getAmount

      public java.lang.Double getAmount()
      Donation Amount
    • getMessage

      public java.lang.String getMessage()
      Donation Message
    • 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