Record Class CompanionProperties

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

public record CompanionProperties(String os, Version version, CompanionProperties.PlatformType platformType, boolean requireFullSync, HistorySyncConfig historySyncConfig) extends Record implements it.auties.protobuf.model.ProtobufMessage
  • Field Details

    • os

      private final String os
      The field for the os record component.
    • version

      private final Version version
      The field for the version record component.
    • platformType

      private final CompanionProperties.PlatformType platformType
      The field for the platformType record component.
    • requireFullSync

      private final boolean requireFullSync
      The field for the requireFullSync record component.
    • historySyncConfig

      private final HistorySyncConfig historySyncConfig
      The field for the historySyncConfig record component.
  • Constructor Details

    • CompanionProperties

      public CompanionProperties(String os, Version version, CompanionProperties.PlatformType platformType, boolean requireFullSync, HistorySyncConfig historySyncConfig)
      Creates an instance of a CompanionProperties record class.
      Parameters:
      os - the value for the os record component
      version - the value for the version record component
      platformType - the value for the platformType record component
      requireFullSync - the value for the requireFullSync record component
      historySyncConfig - the value for the historySyncConfig 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.
    • os

      public String os()
      Returns the value of the os record component.
      Returns:
      the value of the os record component
    • version

      public Version version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • platformType

      public CompanionProperties.PlatformType platformType()
      Returns the value of the platformType record component.
      Returns:
      the value of the platformType record component
    • requireFullSync

      public boolean requireFullSync()
      Returns the value of the requireFullSync record component.
      Returns:
      the value of the requireFullSync record component
    • historySyncConfig

      public HistorySyncConfig historySyncConfig()
      Returns the value of the historySyncConfig record component.
      Returns:
      the value of the historySyncConfig record component