Class PubSubResponse
java.lang.Object
com.github.twitch4j.pubsub.domain.PubSubResponse
public class PubSubResponse
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description PubSubResponse() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)PubSubResponsePayloadgetData()Payloadjava.lang.StringgetError()Errorjava.lang.StringgetNonce()Random string to identify the response associated with this request.PubSubTypegetType()Action TypeinthashCode()voidsetData(PubSubResponsePayload data)PayloadvoidsetError(java.lang.String error)ErrorvoidsetNonce(java.lang.String nonce)Random string to identify the response associated with this request.voidsetType(PubSubType type)Action Typejava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PubSubResponse
public PubSubResponse()
-
-
Method Details
-
getType
Action Type -
getNonce
public java.lang.String getNonce()Random string to identify the response associated with this request. -
getError
public java.lang.String getError()Error -
getData
Payload -
setType
Action Type -
setNonce
public void setNonce(java.lang.String nonce)Random string to identify the response associated with this request. -
setError
public void setError(java.lang.String error)Error -
setData
Payload -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-