Module it.auties.cobalt
Record Class InteractiveLocationAnnotation
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.button.interactive.InteractiveLocationAnnotation
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record InteractiveLocationAnnotation(List<InteractivePoint> polygonVertices, InterativeLocation location)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model class that describes an interactive annotation linked to a message
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe constants of this enumerated type describe the various types of sync that an interactive annotation can provide -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InterativeLocationThe field for thelocationrecord component.private final List<InteractivePoint> The field for thepolygonVerticesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionInteractiveLocationAnnotation(List<InteractivePoint> polygonVertices, InterativeLocation location) Creates an instance of aInteractiveLocationAnnotationrecord 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.location()Returns the value of thelocationrecord component.Returns the value of thepolygonVerticesrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the type of sync
-
Field Details
-
polygonVertices
The field for thepolygonVerticesrecord component. -
location
The field for thelocationrecord component.
-
-
Constructor Details
-
InteractiveLocationAnnotation
public InteractiveLocationAnnotation(List<InteractivePoint> polygonVertices, InterativeLocation location) Creates an instance of aInteractiveLocationAnnotationrecord class.- Parameters:
polygonVertices- the value for thepolygonVerticesrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
type
Returns the type of sync- Returns:
- a non-null Action
-
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). -
polygonVertices
Returns the value of thepolygonVerticesrecord component.- Returns:
- the value of the
polygonVerticesrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-