it.auties.whatsapp.model.info.NativeFlowInfo Maven / Gradle / Ivy
package it.auties.whatsapp.model.info;
import it.auties.protobuf.annotation.ProtobufMessage;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufType;
import it.auties.whatsapp.model.button.base.ButtonBody;
/**
* A model class that holds the information related to a native flow.
*/
@ProtobufMessage(name = "Message.ButtonsMessage.Button.NativeFlowInfo")
public record NativeFlowInfo(
@ProtobufProperty(index = 1, type = ProtobufType.STRING)
String name,
@ProtobufProperty(index = 2, type = ProtobufType.STRING)
String parameters
) implements Info, ButtonBody {
@Override
public Type bodyType() {
return Type.NATIVE_FLOW;
}
}