it.auties.whatsapp.model.button.template.hsm.HighlyStructuredQuickReplyButton Maven / Gradle / Ivy
package it.auties.whatsapp.model.button.template.hsm;
import it.auties.protobuf.annotation.ProtobufMessage;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufType;
import it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredMessage;
/**
* A model class that represents a quick reply button
*/
@ProtobufMessage(name = "TemplateButton.QuickReplyButton")
public record HighlyStructuredQuickReplyButton(
@ProtobufProperty(index = 1, type = ProtobufType.OBJECT)
HighlyStructuredMessage text,
@ProtobufProperty(index = 2, type = ProtobufType.STRING)
String id
) implements HighlyStructuredButton {
public Type buttonType() {
return Type.QUICK_REPLY;
}
}