Record Class DeviceListMetadata

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

public record DeviceListMetadata(byte[] senderKeyHash, Long senderTimestamp, List<Integer> senderKeyIndexes, byte[] recipientKeyHash, Long recipientTimestamp, List<Integer> recipientKeyIndexes) extends Record implements it.auties.protobuf.model.ProtobufMessage
  • Field Details

    • senderKeyHash

      private final byte[] senderKeyHash
      The field for the senderKeyHash record component.
    • senderTimestamp

      private final Long senderTimestamp
      The field for the senderTimestamp record component.
    • senderKeyIndexes

      private final List<Integer> senderKeyIndexes
      The field for the senderKeyIndexes record component.
    • recipientKeyHash

      private final byte[] recipientKeyHash
      The field for the recipientKeyHash record component.
    • recipientTimestamp

      private final Long recipientTimestamp
      The field for the recipientTimestamp record component.
    • recipientKeyIndexes

      private final List<Integer> recipientKeyIndexes
      The field for the recipientKeyIndexes record component.
  • Constructor Details

    • DeviceListMetadata

      public DeviceListMetadata(byte[] senderKeyHash, Long senderTimestamp, List<Integer> senderKeyIndexes, byte[] recipientKeyHash, Long recipientTimestamp, List<Integer> recipientKeyIndexes)
      Creates an instance of a DeviceListMetadata record class.
      Parameters:
      senderKeyHash - the value for the senderKeyHash record component
      senderTimestamp - the value for the senderTimestamp record component
      senderKeyIndexes - the value for the senderKeyIndexes record component
      recipientKeyHash - the value for the recipientKeyHash record component
      recipientTimestamp - the value for the recipientTimestamp record component
      recipientKeyIndexes - the value for the recipientKeyIndexes 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.
    • senderKeyHash

      public byte[] senderKeyHash()
      Returns the value of the senderKeyHash record component.
      Returns:
      the value of the senderKeyHash record component
    • senderTimestamp

      public Long senderTimestamp()
      Returns the value of the senderTimestamp record component.
      Returns:
      the value of the senderTimestamp record component
    • senderKeyIndexes

      public List<Integer> senderKeyIndexes()
      Returns the value of the senderKeyIndexes record component.
      Returns:
      the value of the senderKeyIndexes record component
    • recipientKeyHash

      public byte[] recipientKeyHash()
      Returns the value of the recipientKeyHash record component.
      Returns:
      the value of the recipientKeyHash record component
    • recipientTimestamp

      public Long recipientTimestamp()
      Returns the value of the recipientTimestamp record component.
      Returns:
      the value of the recipientTimestamp record component
    • recipientKeyIndexes

      public List<Integer> recipientKeyIndexes()
      Returns the value of the recipientKeyIndexes record component.
      Returns:
      the value of the recipientKeyIndexes record component