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 com.github.twitch4j.common.events.TwitchEvent
-
Constructor Summary
Constructors Constructor Description PubSubListenResponseEvent(java.lang.String nonce, java.lang.String error) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetError()The error message associated with the request, or an empty string if there is no error.java.lang.StringgetNonce()The nonce that was passed in the request, if one was provided there.booleanhasError()inthashCode()booleanisBadAuthentication()booleanisBadMessage()booleanisBadTopic()booleanisServerError()java.lang.StringtoString()Methods 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
-
PubSubListenResponseEvent
public PubSubListenResponseEvent(java.lang.String nonce, java.lang.String error)
-
-
Method Details
-
hasError
public boolean hasError() -
isBadAuthentication
public boolean isBadAuthentication() -
isBadMessage
public boolean isBadMessage() -
isBadTopic
public boolean isBadTopic() -
isServerError
public boolean isServerError() -
getNonce
public java.lang.String getNonce()The nonce that was passed in the request, if one was provided there. -
getError
public java.lang.String getError()The error message associated with the request, or an empty string if there is no error. -
toString
public java.lang.String toString()- Overrides:
toStringin classcom.github.twitch4j.common.events.TwitchEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classcom.github.twitch4j.common.events.TwitchEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classcom.github.twitch4j.common.events.TwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.github.twitch4j.common.events.TwitchEvent
-