Record Class WebPayload

java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.WebPayload
All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage, it.auties.protobuf.model.ProtobufObject

public record WebPayload(boolean usesParticipantInKey, boolean supportsStarredMessages, boolean supportsDocumentMessages, boolean supportsUrlMessages, boolean supportsMediaRetry, boolean supportsE2EImage, boolean supportsE2EVideo, boolean supportsE2EAudio, boolean supportsE2EDocument, String documentTypes, byte[] features) extends Record implements it.auties.protobuf.model.ProtobufMessage
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    The field for the documentTypes record component.
    private final byte[]
    The field for the features record component.
    private final boolean
    The field for the supportsDocumentMessages record component.
    private final boolean
    The field for the supportsE2EAudio record component.
    private final boolean
    The field for the supportsE2EDocument record component.
    private final boolean
    The field for the supportsE2EImage record component.
    private final boolean
    The field for the supportsE2EVideo record component.
    private final boolean
    The field for the supportsMediaRetry record component.
    private final boolean
    The field for the supportsStarredMessages record component.
    private final boolean
    The field for the supportsUrlMessages record component.
    private final boolean
    The field for the usesParticipantInKey record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebPayload(boolean usesParticipantInKey, boolean supportsStarredMessages, boolean supportsDocumentMessages, boolean supportsUrlMessages, boolean supportsMediaRetry, boolean supportsE2EImage, boolean supportsE2EVideo, boolean supportsE2EAudio, boolean supportsE2EDocument, String documentTypes, byte[] features)
    Creates an instance of a WebPayload record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the documentTypes record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    byte[]
    Returns the value of the features record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the supportsDocumentMessages record component.
    boolean
    Returns the value of the supportsE2EAudio record component.
    boolean
    Returns the value of the supportsE2EDocument record component.
    boolean
    Returns the value of the supportsE2EImage record component.
    boolean
    Returns the value of the supportsE2EVideo record component.
    boolean
    Returns the value of the supportsMediaRetry record component.
    boolean
    Returns the value of the supportsStarredMessages record component.
    boolean
    Returns the value of the supportsUrlMessages record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the usesParticipantInKey record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • usesParticipantInKey

      private final boolean usesParticipantInKey
      The field for the usesParticipantInKey record component.
    • supportsStarredMessages

      private final boolean supportsStarredMessages
      The field for the supportsStarredMessages record component.
    • supportsDocumentMessages

      private final boolean supportsDocumentMessages
      The field for the supportsDocumentMessages record component.
    • supportsUrlMessages

      private final boolean supportsUrlMessages
      The field for the supportsUrlMessages record component.
    • supportsMediaRetry

      private final boolean supportsMediaRetry
      The field for the supportsMediaRetry record component.
    • supportsE2EImage

      private final boolean supportsE2EImage
      The field for the supportsE2EImage record component.
    • supportsE2EVideo

      private final boolean supportsE2EVideo
      The field for the supportsE2EVideo record component.
    • supportsE2EAudio

      private final boolean supportsE2EAudio
      The field for the supportsE2EAudio record component.
    • supportsE2EDocument

      private final boolean supportsE2EDocument
      The field for the supportsE2EDocument record component.
    • documentTypes

      private final String documentTypes
      The field for the documentTypes record component.
    • features

      private final byte[] features
      The field for the features record component.
  • Constructor Details

    • WebPayload

      public WebPayload(boolean usesParticipantInKey, boolean supportsStarredMessages, boolean supportsDocumentMessages, boolean supportsUrlMessages, boolean supportsMediaRetry, boolean supportsE2EImage, boolean supportsE2EVideo, boolean supportsE2EAudio, boolean supportsE2EDocument, String documentTypes, byte[] features)
      Creates an instance of a WebPayload record class.
      Parameters:
      usesParticipantInKey - the value for the usesParticipantInKey record component
      supportsStarredMessages - the value for the supportsStarredMessages record component
      supportsDocumentMessages - the value for the supportsDocumentMessages record component
      supportsUrlMessages - the value for the supportsUrlMessages record component
      supportsMediaRetry - the value for the supportsMediaRetry record component
      supportsE2EImage - the value for the supportsE2EImage record component
      supportsE2EVideo - the value for the supportsE2EVideo record component
      supportsE2EAudio - the value for the supportsE2EAudio record component
      supportsE2EDocument - the value for the supportsE2EDocument record component
      documentTypes - the value for the documentTypes record component
      features - the value for the features record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • usesParticipantInKey

      public boolean usesParticipantInKey()
      Returns the value of the usesParticipantInKey record component.
      Returns:
      the value of the usesParticipantInKey record component
    • supportsStarredMessages

      public boolean supportsStarredMessages()
      Returns the value of the supportsStarredMessages record component.
      Returns:
      the value of the supportsStarredMessages record component
    • supportsDocumentMessages

      public boolean supportsDocumentMessages()
      Returns the value of the supportsDocumentMessages record component.
      Returns:
      the value of the supportsDocumentMessages record component
    • supportsUrlMessages

      public boolean supportsUrlMessages()
      Returns the value of the supportsUrlMessages record component.
      Returns:
      the value of the supportsUrlMessages record component
    • supportsMediaRetry

      public boolean supportsMediaRetry()
      Returns the value of the supportsMediaRetry record component.
      Returns:
      the value of the supportsMediaRetry record component
    • supportsE2EImage

      public boolean supportsE2EImage()
      Returns the value of the supportsE2EImage record component.
      Returns:
      the value of the supportsE2EImage record component
    • supportsE2EVideo

      public boolean supportsE2EVideo()
      Returns the value of the supportsE2EVideo record component.
      Returns:
      the value of the supportsE2EVideo record component
    • supportsE2EAudio

      public boolean supportsE2EAudio()
      Returns the value of the supportsE2EAudio record component.
      Returns:
      the value of the supportsE2EAudio record component
    • supportsE2EDocument

      public boolean supportsE2EDocument()
      Returns the value of the supportsE2EDocument record component.
      Returns:
      the value of the supportsE2EDocument record component
    • documentTypes

      public String documentTypes()
      Returns the value of the documentTypes record component.
      Returns:
      the value of the documentTypes record component
    • features

      public byte[] features()
      Returns the value of the features record component.
      Returns:
      the value of the features record component