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 listListReply
object.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 a
ButtonReply
reply object.
The type Interactive.
-
Constructor Summary
ConstructorDescriptionInteractive
(ListReply listReply, String type, ButtonReply buttonReply) Creates an instance of aInteractive
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuttonReply
record component.final 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 thelistReply
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
Interactive
Creates an instance of aInteractive
record class.- Parameters:
listReply
- the value for thelistReply
record componenttype
- the value for thetype
record componentbuttonReply
- the value for thebuttonReply
record 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 thelistReply
record component.- Returns:
- the value of the
listReply
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
buttonReply
Returns the value of thebuttonReply
record component.- Returns:
- the value of the
buttonReply
record component
-