Module it.auties.cobalt
Record Class InteractiveResponseMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.button.InteractiveResponseMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,ContextualMessage,Message
public record InteractiveResponseMessage(InteractiveBody body, NativeFlowResponseMessage nativeFlowResponseMessage, Optional<ContextInfo> contextInfo)
extends Record
implements ContextualMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InteractiveBodyThe field for thebodyrecord component.private final Optional<ContextInfo> The field for thecontextInforecord component.private final NativeFlowResponseMessageThe field for thenativeFlowResponseMessagerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionInteractiveResponseMessage(InteractiveBody body, NativeFlowResponseMessage nativeFlowResponseMessage, Optional<ContextInfo> contextInfo) Creates an instance of aInteractiveResponseMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.category()Return message categoryReturns the value of thecontextInforecord 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 thenativeFlowResponseMessagerecord component.final StringtoString()Returns a string representation of this record class.type()Return message type
-
Field Details
-
body
The field for thebodyrecord component. -
nativeFlowResponseMessage
The field for thenativeFlowResponseMessagerecord component. -
contextInfo
The field for thecontextInforecord component.
-
-
Constructor Details
-
InteractiveResponseMessage
public InteractiveResponseMessage(InteractiveBody body, NativeFlowResponseMessage nativeFlowResponseMessage, Optional<ContextInfo> contextInfo) Creates an instance of aInteractiveResponseMessagerecord class.- Parameters:
body- the value for thebodyrecord componentnativeFlowResponseMessage- the value for thenativeFlowResponseMessagerecord componentcontextInfo- the value for thecontextInforecord component
-
-
Method Details
-
type
Description copied from interface:MessageReturn message type -
category
Description copied from interface:MessageReturn message category -
interactiveResponseMessageType
-
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). -
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
nativeFlowResponseMessage
Returns the value of thenativeFlowResponseMessagerecord component.- Returns:
- the value of the
nativeFlowResponseMessagerecord component
-
contextInfo
Returns the value of thecontextInforecord component.- Specified by:
contextInfoin interfaceContextualMessage- Returns:
- the value of the
contextInforecord component
-