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

it.auties.whatsapp.model.message.button.ButtonsMessage Maven / Gradle / Ivy

package it.auties.whatsapp.model.message.button;

import it.auties.protobuf.annotation.ProtobufBuilder;
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.Button;
import it.auties.whatsapp.model.info.ContextInfo;
import it.auties.whatsapp.model.message.button.ButtonsMessageHeader.Type;
import it.auties.whatsapp.model.message.model.ButtonMessage;
import it.auties.whatsapp.model.message.model.ContextualMessage;
import it.auties.whatsapp.model.message.model.MessageType;
import it.auties.whatsapp.model.message.standard.DocumentMessage;
import it.auties.whatsapp.model.message.standard.ImageMessage;
import it.auties.whatsapp.model.message.standard.LocationMessage;
import it.auties.whatsapp.model.message.standard.VideoOrGifMessage;

import java.util.List;
import java.util.Optional;

/**
 * A model class that represents a message that contains buttons inside
 */
@ProtobufMessage(name = "Message.ButtonsMessage")
public final class ButtonsMessage implements ButtonMessage, ContextualMessage {
    @ProtobufProperty(index = 1, type = ProtobufType.STRING)
    private final ButtonsMessageHeaderText headerText;
    @ProtobufProperty(index = 2, type = ProtobufType.OBJECT)
    private final DocumentMessage headerDocument;
    @ProtobufProperty(index = 3, type = ProtobufType.OBJECT)
    private final ImageMessage headerImage;
    @ProtobufProperty(index = 4, type = ProtobufType.OBJECT)
    private final VideoOrGifMessage headerVideo;
    @ProtobufProperty(index = 5, type = ProtobufType.OBJECT)
    private final LocationMessage headerLocation;
    @ProtobufProperty(index = 6, type = ProtobufType.STRING)
    private final String body;
    @ProtobufProperty(index = 7, type = ProtobufType.STRING)
    private final String footer;
    @ProtobufProperty(index = 8, type = ProtobufType.OBJECT)
    private ContextInfo contextInfo;
    @ProtobufProperty(index = 9, type = ProtobufType.OBJECT)
    private final List




© 2015 - 2024 Weber Informatics LLC | Privacy Policy