Record Class ClientPayload

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

public record ClientPayload(Long username, Boolean passive, UserAgent userAgent, WebInfo webInfo, String pushName, Integer sessionId, Boolean shortConnect, ClientPayload.ClientPayloadConnectType connectType, ClientPayload.ClientPayloadConnectReason connectReason, List<Integer> shards, DNSSource dnsSource, Integer connectAttemptCount, Integer device, CompanionRegistrationData regData, ClientPayload.ClientPayloadProduct product, byte[] fbCat, byte[] fbUserAgent, Boolean oc, Integer lc, ClientPayload.ClientPayloadIOSAppExtension iosAppExtension, Long fbAppId, byte[] fbDeviceId, Boolean pull) extends Record implements it.auties.protobuf.model.ProtobufMessage
  • Field Details

    • username

      private final Long username
      The field for the username record component.
    • passive

      private final Boolean passive
      The field for the passive record component.
    • userAgent

      private final UserAgent userAgent
      The field for the userAgent record component.
    • webInfo

      private final WebInfo webInfo
      The field for the webInfo record component.
    • pushName

      private final String pushName
      The field for the pushName record component.
    • sessionId

      private final Integer sessionId
      The field for the sessionId record component.
    • shortConnect

      private final Boolean shortConnect
      The field for the shortConnect record component.
    • connectType

      private final ClientPayload.ClientPayloadConnectType connectType
      The field for the connectType record component.
    • connectReason

      private final ClientPayload.ClientPayloadConnectReason connectReason
      The field for the connectReason record component.
    • shards

      private final List<Integer> shards
      The field for the shards record component.
    • dnsSource

      private final DNSSource dnsSource
      The field for the dnsSource record component.
    • connectAttemptCount

      private final Integer connectAttemptCount
      The field for the connectAttemptCount record component.
    • device

      private final Integer device
      The field for the device record component.
    • regData

      private final CompanionRegistrationData regData
      The field for the regData record component.
    • product

      private final ClientPayload.ClientPayloadProduct product
      The field for the product record component.
    • fbCat

      private final byte[] fbCat
      The field for the fbCat record component.
    • fbUserAgent

      private final byte[] fbUserAgent
      The field for the fbUserAgent record component.
    • oc

      private final Boolean oc
      The field for the oc record component.
    • lc

      private final Integer lc
      The field for the lc record component.
    • iosAppExtension

      private final ClientPayload.ClientPayloadIOSAppExtension iosAppExtension
      The field for the iosAppExtension record component.
    • fbAppId

      private final Long fbAppId
      The field for the fbAppId record component.
    • fbDeviceId

      private final byte[] fbDeviceId
      The field for the fbDeviceId record component.
    • pull

      private final Boolean pull
      The field for the pull record component.
  • Constructor Details

    • ClientPayload

      public ClientPayload(Long username, Boolean passive, UserAgent userAgent, WebInfo webInfo, String pushName, Integer sessionId, Boolean shortConnect, ClientPayload.ClientPayloadConnectType connectType, ClientPayload.ClientPayloadConnectReason connectReason, List<Integer> shards, DNSSource dnsSource, Integer connectAttemptCount, Integer device, CompanionRegistrationData regData, ClientPayload.ClientPayloadProduct product, byte[] fbCat, byte[] fbUserAgent, Boolean oc, Integer lc, ClientPayload.ClientPayloadIOSAppExtension iosAppExtension, Long fbAppId, byte[] fbDeviceId, Boolean pull)
      Creates an instance of a ClientPayload record class.
      Parameters:
      username - the value for the username record component
      passive - the value for the passive record component
      userAgent - the value for the userAgent record component
      webInfo - the value for the webInfo record component
      pushName - the value for the pushName record component
      sessionId - the value for the sessionId record component
      shortConnect - the value for the shortConnect record component
      connectType - the value for the connectType record component
      connectReason - the value for the connectReason record component
      shards - the value for the shards record component
      dnsSource - the value for the dnsSource record component
      connectAttemptCount - the value for the connectAttemptCount record component
      device - the value for the device record component
      regData - the value for the regData record component
      product - the value for the product record component
      fbCat - the value for the fbCat record component
      fbUserAgent - the value for the fbUserAgent record component
      oc - the value for the oc record component
      lc - the value for the lc record component
      iosAppExtension - the value for the iosAppExtension record component
      fbAppId - the value for the fbAppId record component
      fbDeviceId - the value for the fbDeviceId record component
      pull - the value for the pull 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. 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.
    • username

      public Long username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • passive

      public Boolean passive()
      Returns the value of the passive record component.
      Returns:
      the value of the passive record component
    • userAgent

      public UserAgent userAgent()
      Returns the value of the userAgent record component.
      Returns:
      the value of the userAgent record component
    • webInfo

      public WebInfo webInfo()
      Returns the value of the webInfo record component.
      Returns:
      the value of the webInfo record component
    • pushName

      public String pushName()
      Returns the value of the pushName record component.
      Returns:
      the value of the pushName record component
    • sessionId

      public Integer sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • shortConnect

      public Boolean shortConnect()
      Returns the value of the shortConnect record component.
      Returns:
      the value of the shortConnect record component
    • connectType

      Returns the value of the connectType record component.
      Returns:
      the value of the connectType record component
    • connectReason

      Returns the value of the connectReason record component.
      Returns:
      the value of the connectReason record component
    • shards

      public List<Integer> shards()
      Returns the value of the shards record component.
      Returns:
      the value of the shards record component
    • dnsSource

      public DNSSource dnsSource()
      Returns the value of the dnsSource record component.
      Returns:
      the value of the dnsSource record component
    • connectAttemptCount

      public Integer connectAttemptCount()
      Returns the value of the connectAttemptCount record component.
      Returns:
      the value of the connectAttemptCount record component
    • device

      public Integer device()
      Returns the value of the device record component.
      Returns:
      the value of the device record component
    • regData

      public CompanionRegistrationData regData()
      Returns the value of the regData record component.
      Returns:
      the value of the regData record component
    • product

      Returns the value of the product record component.
      Returns:
      the value of the product record component
    • fbCat

      public byte[] fbCat()
      Returns the value of the fbCat record component.
      Returns:
      the value of the fbCat record component
    • fbUserAgent

      public byte[] fbUserAgent()
      Returns the value of the fbUserAgent record component.
      Returns:
      the value of the fbUserAgent record component
    • oc

      public Boolean oc()
      Returns the value of the oc record component.
      Returns:
      the value of the oc record component
    • lc

      public Integer lc()
      Returns the value of the lc record component.
      Returns:
      the value of the lc record component
    • iosAppExtension

      Returns the value of the iosAppExtension record component.
      Returns:
      the value of the iosAppExtension record component
    • fbAppId

      public Long fbAppId()
      Returns the value of the fbAppId record component.
      Returns:
      the value of the fbAppId record component
    • fbDeviceId

      public byte[] fbDeviceId()
      Returns the value of the fbDeviceId record component.
      Returns:
      the value of the fbDeviceId record component
    • pull

      public Boolean pull()
      Returns the value of the pull record component.
      Returns:
      the value of the pull record component