Module it.auties.cobalt
Record Class NativeFlowResponseMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.button.NativeFlowResponseMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
,ButtonMessage
,Message
public record NativeFlowResponseMessage(String name, String paramsJson, int version)
extends Record
implements ButtonMessage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNativeFlowResponseMessage
(String name, String paramsJson, int version) Creates an instance of aNativeFlowResponseMessage
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.Returns the value of theparamsJson
record component.final String
toString()
Returns a string representation of this record class.type()
Return message typeint
version()
Returns the value of theversion
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.auties.whatsapp.model.message.model.ButtonMessage
category
-
Field Details
-
name
The field for thename
record component. -
paramsJson
The field for theparamsJson
record component. -
version
private final int versionThe field for theversion
record component.
-
-
Constructor Details
-
NativeFlowResponseMessage
Creates an instance of aNativeFlowResponseMessage
record class.- Parameters:
name
- the value for thename
record componentparamsJson
- the value for theparamsJson
record componentversion
- the value for theversion
record component
-
-
Method Details
-
type
Description copied from interface:Message
Return message 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 '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
paramsJson
Returns the value of theparamsJson
record component.- Returns:
- the value of the
paramsJson
record component
-
version
public int version()Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-