Record Class PaymentMediaData

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

public record PaymentMediaData(byte[] mediaKey, long mediaKeyTimestamp, byte[] mediaSha256, byte[] mediaEncryptedSha256, String mediaDirectPath) extends Record implements it.auties.protobuf.model.ProtobufMessage
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    The field for the mediaDirectPath record component.
    private final byte[]
    The field for the mediaEncryptedSha256 record component.
    private final byte[]
    The field for the mediaKey record component.
    private final long
    The field for the mediaKeyTimestamp record component.
    private final byte[]
    The field for the mediaSha256 record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PaymentMediaData(byte[] mediaKey, long mediaKeyTimestamp, byte[] mediaSha256, byte[] mediaEncryptedSha256, String mediaDirectPath)
    Creates an instance of a PaymentMediaData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the mediaDirectPath record component.
    byte[]
    Returns the value of the mediaEncryptedSha256 record component.
    byte[]
    Returns the value of the mediaKey record component.
    long
    Returns the value of the mediaKeyTimestamp record component.
    byte[]
    Returns the value of the mediaSha256 record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • mediaKey

      private final byte[] mediaKey
      The field for the mediaKey record component.
    • mediaKeyTimestamp

      private final long mediaKeyTimestamp
      The field for the mediaKeyTimestamp record component.
    • mediaSha256

      private final byte[] mediaSha256
      The field for the mediaSha256 record component.
    • mediaEncryptedSha256

      private final byte[] mediaEncryptedSha256
      The field for the mediaEncryptedSha256 record component.
    • mediaDirectPath

      private final String mediaDirectPath
      The field for the mediaDirectPath record component.
  • Constructor Details

    • PaymentMediaData

      public PaymentMediaData(byte[] mediaKey, long mediaKeyTimestamp, byte[] mediaSha256, byte[] mediaEncryptedSha256, String mediaDirectPath)
      Creates an instance of a PaymentMediaData record class.
      Parameters:
      mediaKey - the value for the mediaKey record component
      mediaKeyTimestamp - the value for the mediaKeyTimestamp record component
      mediaSha256 - the value for the mediaSha256 record component
      mediaEncryptedSha256 - the value for the mediaEncryptedSha256 record component
      mediaDirectPath - the value for the mediaDirectPath 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.
    • mediaKey

      public byte[] mediaKey()
      Returns the value of the mediaKey record component.
      Returns:
      the value of the mediaKey record component
    • mediaKeyTimestamp

      public long mediaKeyTimestamp()
      Returns the value of the mediaKeyTimestamp record component.
      Returns:
      the value of the mediaKeyTimestamp record component
    • mediaSha256

      public byte[] mediaSha256()
      Returns the value of the mediaSha256 record component.
      Returns:
      the value of the mediaSha256 record component
    • mediaEncryptedSha256

      public byte[] mediaEncryptedSha256()
      Returns the value of the mediaEncryptedSha256 record component.
      Returns:
      the value of the mediaEncryptedSha256 record component
    • mediaDirectPath

      public String mediaDirectPath()
      Returns the value of the mediaDirectPath record component.
      Returns:
      the value of the mediaDirectPath record component