Module it.auties.cobalt
Record Class InteractiveNativeFlow
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.button.interactive.InteractiveNativeFlow
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
,InteractiveMessageContent
public record InteractiveNativeFlow(List<InteractiveButton> buttons, String parameters, int version)
extends Record
implements InteractiveMessageContent
A model class that represents a native flow
Here> is an explanation on how to use this kind of message
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.auties.whatsapp.model.message.button.InteractiveMessageContent
InteractiveMessageContent.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<InteractiveButton> The field for thebuttons
record component.private final String
The field for theparameters
record component.private final int
The field for theversion
record component. -
Constructor Summary
ConstructorsConstructorDescriptionInteractiveNativeFlow
(List<InteractiveButton> buttons, String parameters, int version) Creates an instance of aInteractiveNativeFlow
record class. -
Method Summary
Modifier and TypeMethodDescriptionbuttons()
Returns the value of thebuttons
record component.Returns the type of this contentfinal 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 theparameters
record component.final String
toString()
Returns a string representation of this record class.int
version()
Returns the value of theversion
record component.
-
Field Details
-
buttons
The field for thebuttons
record component. -
parameters
The field for theparameters
record component. -
version
private final int versionThe field for theversion
record component.
-
-
Constructor Details
-
InteractiveNativeFlow
Creates an instance of aInteractiveNativeFlow
record class.- Parameters:
buttons
- the value for thebuttons
record componentparameters
- the value for theparameters
record componentversion
- the value for theversion
record component
-
-
Method Details
-
contentType
Description copied from interface:InteractiveMessageContent
Returns the type of this content- Specified by:
contentType
in interfaceInteractiveMessageContent
- Returns:
- a non-null type
-
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 '=='. -
buttons
Returns the value of thebuttons
record component.- Returns:
- the value of the
buttons
record component
-
parameters
Returns the value of theparameters
record component.- Returns:
- the value of the
parameters
record component
-
version
public int version()Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-