Module it.auties.cobalt
Package it.auties.whatsapp.model.poll
Record Class PollUpdateEncryptedMetadata
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.poll.PollUpdateEncryptedMetadata
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record PollUpdateEncryptedMetadata(byte[] payload, byte[] iv)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model class that represents the cypher data to decode a
PollUpdateMessage-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPollUpdateEncryptedMetadata(byte[] payload, byte[] iv) Creates an instance of aPollUpdateEncryptedMetadatarecord 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.byte[]iv()Returns the value of theivrecord component.byte[]payload()Returns the value of thepayloadrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
payload
private final byte[] payloadThe field for thepayloadrecord component. -
iv
private final byte[] ivThe field for theivrecord component.
-
-
Constructor Details
-
PollUpdateEncryptedMetadata
public PollUpdateEncryptedMetadata(byte[] payload, byte[] iv) Creates an instance of aPollUpdateEncryptedMetadatarecord class.- Parameters:
payload- the value for thepayloadrecord componentiv- the value for theivrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
payload
public byte[] payload()Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
iv
public byte[] iv()Returns the value of theivrecord component.- Returns:
- the value of the
ivrecord component
-