Record Class BusinessAccountLinkInfo

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

public record BusinessAccountLinkInfo(long businessId, String phoneNumber, long issueTimeSeconds, BusinessAccountLinkInfo.HostStorageType hostStorage, BusinessAccountLinkInfo.AccountType accountType) extends Record implements it.auties.protobuf.model.ProtobufMessage
A model class that holds a payload about a business link info.
  • Field Details

    • businessId

      private final long businessId
      The field for the businessId record component.
    • phoneNumber

      private final String phoneNumber
      The field for the phoneNumber record component.
    • issueTimeSeconds

      private final long issueTimeSeconds
      The field for the issueTimeSeconds record component.
    • hostStorage

      private final BusinessAccountLinkInfo.HostStorageType hostStorage
      The field for the hostStorage record component.
    • accountType

      private final BusinessAccountLinkInfo.AccountType accountType
      The field for the accountType record component.
  • Constructor Details

    • BusinessAccountLinkInfo

      public BusinessAccountLinkInfo(long businessId, String phoneNumber, long issueTimeSeconds, BusinessAccountLinkInfo.HostStorageType hostStorage, BusinessAccountLinkInfo.AccountType accountType)
      Creates an instance of a BusinessAccountLinkInfo record class.
      Parameters:
      businessId - the value for the businessId record component
      phoneNumber - the value for the phoneNumber record component
      issueTimeSeconds - the value for the issueTimeSeconds record component
      hostStorage - the value for the hostStorage record component
      accountType - the value for the accountType record component
  • Method Details

    • issueTime

      public Optional<ZonedDateTime> issueTime()
      Returns this object's 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.
    • businessId

      public long businessId()
      Returns the value of the businessId record component.
      Returns:
      the value of the businessId record component
    • phoneNumber

      public String phoneNumber()
      Returns the value of the phoneNumber record component.
      Returns:
      the value of the phoneNumber record component
    • issueTimeSeconds

      public long issueTimeSeconds()
      Returns the value of the issueTimeSeconds record component.
      Returns:
      the value of the issueTimeSeconds record component
    • hostStorage

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

      Returns the value of the accountType record component.
      Returns:
      the value of the accountType record component