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

it.auties.whatsapp.model.interactive.InteractiveNativeFlow Maven / Gradle / Ivy

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

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

import java.util.List;

import static it.auties.protobuf.base.ProtobufType.*;

/**
 * A model class that represents a native flow
 * Here> is an explanation on how to use this kind of message
 */
@AllArgsConstructor(staticName = "of")
@Data
@Builder
@Jacksonized
@Accessors(fluent = true)
public final class InteractiveNativeFlow implements InteractiveMessageContent {
    /**
     * The buttons of this flow
     */
    @ProtobufProperty(index = 1, type = MESSAGE, implementation = InteractiveButton.class, repeated = true)
    private List buttons;

    /**
     * The parameters of this flow as json
     */
    @ProtobufProperty(index = 2, type = STRING)
    private String parameters;

    /**
     * The version of this flow
     */
    @ProtobufProperty(index = 3, type = INT32)
    private int version;

    @Override
    public InteractiveMessageContentType contentType() {
        return InteractiveMessageContentType.NATIVE_FLOW;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy