it.auties.whatsapp.model.button.template.hydrated.HydratedURLButton Maven / Gradle / Ivy
package it.auties.whatsapp.model.button.template.hydrated;
import it.auties.protobuf.annotation.ProtobufMessage;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufType;
/**
* A model class that represents a hydrated url button
*/
@ProtobufMessage(name = "HydratedTemplateButton.HydratedURLButton")
public record HydratedURLButton(
@ProtobufProperty(index = 1, type = ProtobufType.STRING)
String text,
@ProtobufProperty(index = 2, type = ProtobufType.STRING)
String url
) implements HydratedButton {
@Override
public Type buttonType() {
return Type.URL;
}
}