it.auties.whatsapp.model.button.interactive.InteractiveNativeFlow Maven / Gradle / Ivy
package it.auties.whatsapp.model.button.interactive;
import it.auties.protobuf.annotation.ProtobufMessage;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufType;
import it.auties.whatsapp.model.message.button.InteractiveMessageContent;
import java.util.List;
/**
* A model class that represents a native flow
* Here> is an explanation on how to use this kind of message
*/
@ProtobufMessage(name = "Message.InteractiveMessage.NativeFlowMessage")
public record InteractiveNativeFlow(
@ProtobufProperty(index = 1, type = ProtobufType.OBJECT)
List buttons,
@ProtobufProperty(index = 2, type = ProtobufType.STRING)
String parameters,
@ProtobufProperty(index = 3, type = ProtobufType.INT32)
int version
) implements InteractiveMessageContent {
@Override
public Type contentType() {
return Type.NATIVE_FLOW;
}
}