Class PubSubRequest

java.lang.Object
com.github.twitch4j.pubsub.domain.PubSubRequest

public class PubSubRequest extends Object
PubSub Request

Will ignore null values when serializing the request

  • Constructor Details

    • PubSubRequest

      public PubSubRequest()
  • Method Details

    • getType

      public PubSubType getType()
      Action Type
    • getNonce

      public String getNonce()
      Random string to identify the response associated with this request.
    • getData

      public Map<String,Object> getData()
      Data (Body)
    • getCredential

      public com.github.philippheuer.credentialmanager.domain.OAuth2Credential getCredential()
      Credential for PubSubType.LISTEN requests.
    • setType

      public void setType(PubSubType type)
      Action Type
    • setNonce

      public void setNonce(String nonce)
      Random string to identify the response associated with this request.
    • setData

      public void setData(Map<String,Object> data)
      Data (Body)
    • setCredential

      public void setCredential(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential)
      Credential for PubSubType.LISTEN requests.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object