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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for themediaDirectPathrecord component.private final byte[]The field for themediaEncryptedSha256record component.private final byte[]The field for themediaKeyrecord component.private final longThe field for themediaKeyTimestamprecord component.private final byte[]The field for themediaSha256record component. -
Constructor Summary
ConstructorsConstructorDescriptionPaymentMediaData(byte[] mediaKey, long mediaKeyTimestamp, byte[] mediaSha256, byte[] mediaEncryptedSha256, String mediaDirectPath) Creates an instance of aPaymentMediaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themediaDirectPathrecord component.byte[]Returns the value of themediaEncryptedSha256record component.byte[]mediaKey()Returns the value of themediaKeyrecord component.longReturns the value of themediaKeyTimestamprecord component.byte[]Returns the value of themediaSha256record component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
mediaKey
private final byte[] mediaKeyThe field for themediaKeyrecord component. -
mediaKeyTimestamp
private final long mediaKeyTimestampThe field for themediaKeyTimestamprecord component. -
mediaSha256
private final byte[] mediaSha256The field for themediaSha256record component. -
mediaEncryptedSha256
private final byte[] mediaEncryptedSha256The field for themediaEncryptedSha256record component. -
mediaDirectPath
The field for themediaDirectPathrecord component.
-
-
Constructor Details
-
PaymentMediaData
public PaymentMediaData(byte[] mediaKey, long mediaKeyTimestamp, byte[] mediaSha256, byte[] mediaEncryptedSha256, String mediaDirectPath) Creates an instance of aPaymentMediaDatarecord class.- Parameters:
mediaKey- the value for themediaKeyrecord componentmediaKeyTimestamp- the value for themediaKeyTimestamprecord componentmediaSha256- the value for themediaSha256record componentmediaEncryptedSha256- the value for themediaEncryptedSha256record componentmediaDirectPath- the value for themediaDirectPathrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
mediaKey
public byte[] mediaKey()Returns the value of themediaKeyrecord component.- Returns:
- the value of the
mediaKeyrecord component
-
mediaKeyTimestamp
public long mediaKeyTimestamp()Returns the value of themediaKeyTimestamprecord component.- Returns:
- the value of the
mediaKeyTimestamprecord component
-
mediaSha256
public byte[] mediaSha256()Returns the value of themediaSha256record component.- Returns:
- the value of the
mediaSha256record component
-
mediaEncryptedSha256
public byte[] mediaEncryptedSha256()Returns the value of themediaEncryptedSha256record component.- Returns:
- the value of the
mediaEncryptedSha256record component
-
mediaDirectPath
Returns the value of themediaDirectPathrecord component.- Returns:
- the value of the
mediaDirectPathrecord component
-