All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.auties.whatsapp.model.button.template.hydrated.HydratedURLButton Maven / Gradle / Ivy

package it.auties.whatsapp.model.button.template.hydrated;

import it.auties.protobuf.annotation.ProtobufMessageName;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufType;

/**
 * A model class that represents a hydrated url button
 */
@ProtobufMessageName("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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy