Package com.whatsapp.api.domain.webhook
Record Class Interactive
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.webhook.Interactive
- Record Components:
listReply- Used on Webhooks related to List Messages Contains a listListReplyobject.type- Contains the type of interactive object. Supported options are:- button_reply: for responses of Reply Buttons.
- list_reply: for responses to List Messages and other interactive objects.
- Used on Webhooks related to Reply Buttons. Contains aButtonReplyreply object.
The type Interactive.
-
Constructor Summary
ConstructorsConstructorDescriptionInteractive(ListReply listReply, String type, ButtonReply buttonReply) Creates an instance of aInteractiverecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuttonReplyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelistReplyrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Interactive
Creates an instance of aInteractiverecord class.- Parameters:
listReply- the value for thelistReplyrecord componenttype- the value for thetyperecord componentbuttonReply- the value for thebuttonReplyrecord 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). -
listReply
Returns the value of thelistReplyrecord component.- Returns:
- the value of the
listReplyrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
buttonReply
Returns the value of thebuttonReplyrecord component.- Returns:
- the value of the
buttonReplyrecord component
-