Record Class SubscribeRequest

java.lang.Object
java.lang.Record
ch.rasc.jcentserverclient.models.SubscribeRequest

public record SubscribeRequest(String channel, String user, Long expireAt, Object info, String b64info, String client, Object data, String b64data, StreamPosition recoverSince, SubscribeOptionOverride override, String session) extends Record
Request for subscribing a user to a channel.
  • Constructor Details

    • SubscribeRequest

      public SubscribeRequest(String channel, String user, Long expireAt, Object info, String b64info, String client, Object data, String b64data, StreamPosition recoverSince, SubscribeOptionOverride override, String session)
      Creates an instance of a SubscribeRequest record class.
      Parameters:
      channel - the value for the channel record component
      user - the value for the user record component
      expireAt - the value for the expireAt record component
      info - the value for the info record component
      b64info - the value for the b64info record component
      client - the value for the client record component
      data - the value for the data record component
      b64data - the value for the b64data record component
      recoverSince - the value for the recoverSince record component
      override - the value for the override record component
      session - the value for the session record component
  • Method Details

    • builder

      public static SubscribeRequest.Builder builder()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • channel

      public String channel()
      Returns the value of the channel record component.
      Returns:
      the value of the channel record component
    • user

      public String user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • expireAt

      public Long expireAt()
      Returns the value of the expireAt record component.
      Returns:
      the value of the expireAt record component
    • info

      public Object info()
      Returns the value of the info record component.
      Returns:
      the value of the info record component
    • b64info

      public String b64info()
      Returns the value of the b64info record component.
      Returns:
      the value of the b64info record component
    • client

      public String client()
      Returns the value of the client record component.
      Returns:
      the value of the client record component
    • data

      public Object data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component
    • b64data

      public String b64data()
      Returns the value of the b64data record component.
      Returns:
      the value of the b64data record component
    • recoverSince

      public StreamPosition recoverSince()
      Returns the value of the recoverSince record component.
      Returns:
      the value of the recoverSince record component
    • override

      public SubscribeOptionOverride override()
      Returns the value of the override record component.
      Returns:
      the value of the override record component
    • session

      public String session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component