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 thebuttonsrecord component.private final StringThe field for theparametersrecord component.private final intThe field for theversionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionInteractiveNativeFlow(List<InteractiveButton> buttons, String parameters, int version) Creates an instance of aInteractiveNativeFlowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuttons()Returns the value of thebuttonsrecord component.Returns the type of this contentfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparametersrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Field Details
-
buttons
The field for thebuttonsrecord component. -
parameters
The field for theparametersrecord component. -
version
private final int versionThe field for theversionrecord component.
-
-
Constructor Details
-
InteractiveNativeFlow
Creates an instance of aInteractiveNativeFlowrecord class.- Parameters:
buttons- the value for thebuttonsrecord componentparameters- the value for theparametersrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
contentType
Description copied from interface:InteractiveMessageContentReturns the type of this content- Specified by:
contentTypein 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 thebuttonsrecord component.- Returns:
- the value of the
buttonsrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-