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
-
Constructor Summary
ConstructorsConstructorDescriptionPubSubListenResponseEvent(String nonce, String error, Supplier<PubSubRequest> listenRequestSupplier) Creates a newPubSubListenResponseEventinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetError()The error message associated with the request, or an empty string if there is no error.getNonce()The nonce that was passed in the request, if one was provided there.booleanhasError()inthashCode()booleanbooleanbooleanbooleantoString()Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
PubSubListenResponseEvent
public PubSubListenResponseEvent(String nonce, String error, Supplier<PubSubRequest> listenRequestSupplier) Creates a newPubSubListenResponseEventinstance.- 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
- 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
The nonce that was passed in the request, if one was provided there. -
getError
The error message associated with the request, or an empty string if there is no error. -
toString
- Overrides:
toStringin classTwitchEvent
-
equals
- Overrides:
equalsin classTwitchEvent
-
canEqual
- Overrides:
canEqualin classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classTwitchEvent
-