java.lang.Object
java.lang.Record
it.auties.whatsapp.model.poll.PollUpdate
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
public record PollUpdate(ChatMessageKey pollUpdateMessageKey, PollUpdateEncryptedOptions vote, long senderTimestampMilliseconds)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model class that represents metadata about a
PollUpdateMessage
Not currently used, so it's
package private-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatMessageKey
The field for thepollUpdateMessageKey
record component.private final long
The field for thesenderTimestampMilliseconds
record component.private final PollUpdateEncryptedOptions
The field for thevote
record component. -
Constructor Summary
ConstructorsConstructorDescriptionPollUpdate
(ChatMessageKey pollUpdateMessageKey, PollUpdateEncryptedOptions vote, long senderTimestampMilliseconds) Creates an instance of aPollUpdate
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepollUpdateMessageKey
record component.Returns when the update was sentlong
Returns the value of thesenderTimestampMilliseconds
record component.final String
toString()
Returns a string representation of this record class.vote()
Returns the value of thevote
record component.
-
Field Details
-
pollUpdateMessageKey
The field for thepollUpdateMessageKey
record component. -
vote
The field for thevote
record component. -
senderTimestampMilliseconds
private final long senderTimestampMillisecondsThe field for thesenderTimestampMilliseconds
record component.
-
-
Constructor Details
-
PollUpdate
public PollUpdate(ChatMessageKey pollUpdateMessageKey, PollUpdateEncryptedOptions vote, long senderTimestampMilliseconds) Creates an instance of aPollUpdate
record class.- Parameters:
pollUpdateMessageKey
- the value for thepollUpdateMessageKey
record componentvote
- the value for thevote
record componentsenderTimestampMilliseconds
- the value for thesenderTimestampMilliseconds
record component
-
-
Method Details
-
senderTimestamp
Returns when the update was sent- Returns:
- an optional
-
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 '=='. -
pollUpdateMessageKey
Returns the value of thepollUpdateMessageKey
record component.- Returns:
- the value of the
pollUpdateMessageKey
record component
-
vote
Returns the value of thevote
record component.- Returns:
- the value of the
vote
record component
-
senderTimestampMilliseconds
public long senderTimestampMilliseconds()Returns the value of thesenderTimestampMilliseconds
record component.- Returns:
- the value of the
senderTimestampMilliseconds
record component
-