Record Class BusinessVerifiedNameDetails

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

public record BusinessVerifiedNameDetails(long serial, String issuer, String name, List<BusinessLocalizedName> localizedNames, long issueTimeSeconds) extends Record implements it.auties.protobuf.model.ProtobufMessage
A model class that represents a verified name
  • Field Details

    • serial

      private final long serial
      The field for the serial record component.
    • issuer

      private final String issuer
      The field for the issuer record component.
    • name

      private final String name
      The field for the name record component.
    • localizedNames

      private final List<BusinessLocalizedName> localizedNames
      The field for the localizedNames record component.
    • issueTimeSeconds

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

    • BusinessVerifiedNameDetails

      public BusinessVerifiedNameDetails(long serial, String issuer, String name, List<BusinessLocalizedName> localizedNames, long issueTimeSeconds)
      Creates an instance of a BusinessVerifiedNameDetails record class.
      Parameters:
      serial - the value for the serial record component
      issuer - the value for the issuer record component
      name - the value for the name record component
      localizedNames - the value for the localizedNames record component
      issueTimeSeconds - the value for the issueTimeSeconds 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.
    • serial

      public long serial()
      Returns the value of the serial record component.
      Returns:
      the value of the serial record component
    • issuer

      public String issuer()
      Returns the value of the issuer record component.
      Returns:
      the value of the issuer record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • localizedNames

      public List<BusinessLocalizedName> localizedNames()
      Returns the value of the localizedNames record component.
      Returns:
      the value of the localizedNames record component
    • issueTimeSeconds

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