java.lang.Object
java.lang.Record
it.auties.whatsapp.model.poll.PollAdditionalMetadata
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record PollAdditionalMetadata(boolean pollInvalidated)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model class that represents additional metadata about a
PollCreationMessage-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thepollInvalidatedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPollAdditionalMetadata(boolean pollInvalidated) Creates an instance of aPollAdditionalMetadatarecord 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.booleanReturns the value of thepollInvalidatedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pollInvalidated
private final boolean pollInvalidatedThe field for thepollInvalidatedrecord component.
-
-
Constructor Details
-
PollAdditionalMetadata
public PollAdditionalMetadata(boolean pollInvalidated) Creates an instance of aPollAdditionalMetadatarecord class.- Parameters:
pollInvalidated- the value for thepollInvalidatedrecord 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 with '=='. -
pollInvalidated
public boolean pollInvalidated()Returns the value of thepollInvalidatedrecord component.- Returns:
- the value of the
pollInvalidatedrecord component
-