Record Class BusinessIdentityInfo

java.lang.Object
java.lang.Record
it.auties.whatsapp.model.info.BusinessIdentityInfo
All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage, it.auties.protobuf.model.ProtobufObject, Info

public record BusinessIdentityInfo(BusinessIdentityInfo.VerifiedLevel level, BusinessVerifiedNameCertificate certificate, boolean signed, boolean revoked, BusinessIdentityInfo.HostStorageType hostStorage, BusinessIdentityInfo.ActorsType actualActors, long privacyModeTimestampSeconds, long featureControls) extends Record implements Info, it.auties.protobuf.model.ProtobufMessage
A model class that holds the information related to the identity of a business account.
  • Field Details

    • level

      The field for the level record component.
    • certificate

      private final BusinessVerifiedNameCertificate certificate
      The field for the certificate record component.
    • signed

      private final boolean signed
      The field for the signed record component.
    • revoked

      private final boolean revoked
      The field for the revoked record component.
    • hostStorage

      private final BusinessIdentityInfo.HostStorageType hostStorage
      The field for the hostStorage record component.
    • actualActors

      private final BusinessIdentityInfo.ActorsType actualActors
      The field for the actualActors record component.
    • privacyModeTimestampSeconds

      private final long privacyModeTimestampSeconds
      The field for the privacyModeTimestampSeconds record component.
    • featureControls

      private final long featureControls
      The field for the featureControls record component.
  • Constructor Details

    • BusinessIdentityInfo

      public BusinessIdentityInfo(BusinessIdentityInfo.VerifiedLevel level, BusinessVerifiedNameCertificate certificate, boolean signed, boolean revoked, BusinessIdentityInfo.HostStorageType hostStorage, BusinessIdentityInfo.ActorsType actualActors, long privacyModeTimestampSeconds, long featureControls)
      Creates an instance of a BusinessIdentityInfo record class.
      Parameters:
      level - the value for the level record component
      certificate - the value for the certificate record component
      signed - the value for the signed record component
      revoked - the value for the revoked record component
      hostStorage - the value for the hostStorage record component
      actualActors - the value for the actualActors record component
      privacyModeTimestampSeconds - the value for the privacyModeTimestampSeconds record component
      featureControls - the value for the featureControls record component
  • Method Details

    • privacyModeTimestamp

      public Optional<ZonedDateTime> privacyModeTimestamp()
      Returns the privacy mode timestampSeconds
      Returns:
      an optional
    • 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.
    • level

      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • certificate

      public BusinessVerifiedNameCertificate certificate()
      Returns the value of the certificate record component.
      Returns:
      the value of the certificate record component
    • signed

      public boolean signed()
      Returns the value of the signed record component.
      Returns:
      the value of the signed record component
    • revoked

      public boolean revoked()
      Returns the value of the revoked record component.
      Returns:
      the value of the revoked record component
    • hostStorage

      Returns the value of the hostStorage record component.
      Returns:
      the value of the hostStorage record component
    • actualActors

      public BusinessIdentityInfo.ActorsType actualActors()
      Returns the value of the actualActors record component.
      Returns:
      the value of the actualActors record component
    • privacyModeTimestampSeconds

      public long privacyModeTimestampSeconds()
      Returns the value of the privacyModeTimestampSeconds record component.
      Returns:
      the value of the privacyModeTimestampSeconds record component
    • featureControls

      public long featureControls()
      Returns the value of the featureControls record component.
      Returns:
      the value of the featureControls record component