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

it.auties.whatsapp.model.button.template.hsm.HighlyStructuredQuickReplyButton Maven / Gradle / Ivy

There is a newer version: 3.5.1
Show newest version
package it.auties.whatsapp.model.button.template.hsm;

import it.auties.protobuf.base.ProtobufProperty;
import it.auties.whatsapp.model.message.button.HighlyStructuredMessage;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.jackson.Jacksonized;

import static it.auties.protobuf.base.ProtobufType.MESSAGE;
import static it.auties.protobuf.base.ProtobufType.STRING;

/**
 * A model class that represents a quick reply button
 */
@AllArgsConstructor(staticName = "of")
@Data
@Builder
@Jacksonized
@Accessors(fluent = true)
public final class HighlyStructuredQuickReplyButton implements HighlyStructuredButton {
    /**
     * The text of this button
     */
    @ProtobufProperty(index = 1, type = MESSAGE)
    private HighlyStructuredMessage text;

    /**
     * The id of this button
     */
    @ProtobufProperty(index = 2, type = STRING)
    private String id;

    public HighlyStructuredButtonType buttonType() {
        return HighlyStructuredButtonType.QUICK_REPLY;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy