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
ConstructorDescriptionPubSubListenResponseEvent
(String nonce, String error, Supplier<PubSubRequest> listenRequestSupplier) Creates a newPubSubListenResponseEvent
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getError()
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.boolean
hasError()
int
hashCode()
boolean
boolean
boolean
boolean
toString()
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 newPubSubListenResponseEvent
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
- 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:
toString
in classTwitchEvent
-
equals
- Overrides:
equals
in classTwitchEvent
-
canEqual
- Overrides:
canEqual
in classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTwitchEvent
-