Record Class UserAgent

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

public record UserAgent(UserAgent.PlatformType platform, Version appVersion, String mcc, String mnc, String osVersion, String manufacturer, String device, String osBuildNumber, String phoneId, UserAgent.ReleaseChannel releaseChannel, String localeLanguageIso6391, String localeCountryIso31661Alpha2, String deviceBoard, UserAgent.DeviceType deviceType) extends Record implements it.auties.protobuf.model.ProtobufMessage
  • Field Details

    • platform

      private final UserAgent.PlatformType platform
      The field for the platform record component.
    • appVersion

      private final Version appVersion
      The field for the appVersion record component.
    • mcc

      private final String mcc
      The field for the mcc record component.
    • mnc

      private final String mnc
      The field for the mnc record component.
    • osVersion

      private final String osVersion
      The field for the osVersion record component.
    • manufacturer

      private final String manufacturer
      The field for the manufacturer record component.
    • device

      private final String device
      The field for the device record component.
    • osBuildNumber

      private final String osBuildNumber
      The field for the osBuildNumber record component.
    • phoneId

      private final String phoneId
      The field for the phoneId record component.
    • releaseChannel

      private final UserAgent.ReleaseChannel releaseChannel
      The field for the releaseChannel record component.
    • localeLanguageIso6391

      private final String localeLanguageIso6391
      The field for the localeLanguageIso6391 record component.
    • localeCountryIso31661Alpha2

      private final String localeCountryIso31661Alpha2
      The field for the localeCountryIso31661Alpha2 record component.
    • deviceBoard

      private final String deviceBoard
      The field for the deviceBoard record component.
    • deviceType

      private final UserAgent.DeviceType deviceType
      The field for the deviceType record component.
  • Constructor Details

    • UserAgent

      public UserAgent(UserAgent.PlatformType platform, Version appVersion, String mcc, String mnc, String osVersion, String manufacturer, String device, String osBuildNumber, String phoneId, UserAgent.ReleaseChannel releaseChannel, String localeLanguageIso6391, String localeCountryIso31661Alpha2, String deviceBoard, UserAgent.DeviceType deviceType)
      Creates an instance of a UserAgent record class.
      Parameters:
      platform - the value for the platform record component
      appVersion - the value for the appVersion record component
      mcc - the value for the mcc record component
      mnc - the value for the mnc record component
      osVersion - the value for the osVersion record component
      manufacturer - the value for the manufacturer record component
      device - the value for the device record component
      osBuildNumber - the value for the osBuildNumber record component
      phoneId - the value for the phoneId record component
      releaseChannel - the value for the releaseChannel record component
      localeLanguageIso6391 - the value for the localeLanguageIso6391 record component
      localeCountryIso31661Alpha2 - the value for the localeCountryIso31661Alpha2 record component
      deviceBoard - the value for the deviceBoard record component
      deviceType - the value for the deviceType 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.
    • platform

      public UserAgent.PlatformType platform()
      Returns the value of the platform record component.
      Returns:
      the value of the platform record component
    • appVersion

      public Version appVersion()
      Returns the value of the appVersion record component.
      Returns:
      the value of the appVersion record component
    • mcc

      public String mcc()
      Returns the value of the mcc record component.
      Returns:
      the value of the mcc record component
    • mnc

      public String mnc()
      Returns the value of the mnc record component.
      Returns:
      the value of the mnc record component
    • osVersion

      public String osVersion()
      Returns the value of the osVersion record component.
      Returns:
      the value of the osVersion record component
    • manufacturer

      public String manufacturer()
      Returns the value of the manufacturer record component.
      Returns:
      the value of the manufacturer record component
    • device

      public String device()
      Returns the value of the device record component.
      Returns:
      the value of the device record component
    • osBuildNumber

      public String osBuildNumber()
      Returns the value of the osBuildNumber record component.
      Returns:
      the value of the osBuildNumber record component
    • phoneId

      public String phoneId()
      Returns the value of the phoneId record component.
      Returns:
      the value of the phoneId record component
    • releaseChannel

      public UserAgent.ReleaseChannel releaseChannel()
      Returns the value of the releaseChannel record component.
      Returns:
      the value of the releaseChannel record component
    • localeLanguageIso6391

      public String localeLanguageIso6391()
      Returns the value of the localeLanguageIso6391 record component.
      Returns:
      the value of the localeLanguageIso6391 record component
    • localeCountryIso31661Alpha2

      public String localeCountryIso31661Alpha2()
      Returns the value of the localeCountryIso31661Alpha2 record component.
      Returns:
      the value of the localeCountryIso31661Alpha2 record component
    • deviceBoard

      public String deviceBoard()
      Returns the value of the deviceBoard record component.
      Returns:
      the value of the deviceBoard record component
    • deviceType

      public UserAgent.DeviceType deviceType()
      Returns the value of the deviceType record component.
      Returns:
      the value of the deviceType record component