Class PubSubListenResponseEvent

java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.common.events.TwitchEvent
com.github.twitch4j.pubsub.events.PubSubListenResponseEvent
All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent

public final class PubSubListenResponseEvent extends TwitchEvent
  • Constructor Details

    • PubSubListenResponseEvent

      public PubSubListenResponseEvent(String nonce, String error, Supplier<PubSubRequest> listenRequestSupplier)
      Creates a new PubSubListenResponseEvent instance.
      Parameters:
      nonce - The nonce that was passed in the request, if one was provided there.
      error - The error message associated with the request, or an empty string if there is no error.
      listenRequestSupplier -
  • Method Details

    • getListenRequest

      public Optional<PubSubRequest> getListenRequest()
      Returns:
      the listen request associated with this response.
    • hasError

      public boolean hasError()
    • isBadAuthentication

      public boolean isBadAuthentication()
    • isBadMessage

      public boolean isBadMessage()
    • isBadTopic

      public boolean isBadTopic()
    • isServerError

      public boolean isServerError()
    • getNonce

      public String getNonce()
      The nonce that was passed in the request, if one was provided there.
    • getError

      public String getError()
      The error message associated with the request, or an empty string if there is no error.
    • toString

      public String toString()
      Overrides:
      toString in class TwitchEvent
    • equals

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

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

      public int hashCode()
      Overrides:
      hashCode in class TwitchEvent