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

it.auties.whatsapp.model.message.standard.PollCreationMessageBuilder Maven / Gradle / Ivy

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

public class PollCreationMessageBuilder {
    private byte[] encryptionKey;
    private java.lang.String title;
    private java.util.List selectableOptions;
    private int selectableOptionsCount;
    private it.auties.whatsapp.model.info.ContextInfo contextInfo;
    private java.util.Map selectableOptionsMap;
    private java.util.List selectedOptions;

    public PollCreationMessageBuilder() {
        encryptionKey = null;
        title = null;
        selectableOptions = it.auties.protobuf.builtin.ProtobufRepeatedMixin.newList();
        selectableOptionsCount = 0;
        contextInfo = null;
        selectableOptionsMap = it.auties.protobuf.builtin.ProtobufMapMixin.newMap();
        selectedOptions = it.auties.protobuf.builtin.ProtobufRepeatedMixin.newList();
    }

    public PollCreationMessageBuilder encryptionKey(byte[] encryptionKey) {
        this.encryptionKey = encryptionKey;
        return this;
    }

    public PollCreationMessageBuilder title(java.lang.String title) {
        this.title = title;
        return this;
    }

    public PollCreationMessageBuilder selectableOptions(java.util.List selectableOptions) {
        this.selectableOptions = selectableOptions;
        return this;
    }

    public PollCreationMessageBuilder selectableOptionsCount(int selectableOptionsCount) {
        this.selectableOptionsCount = selectableOptionsCount;
        return this;
    }

    public PollCreationMessageBuilder contextInfo(it.auties.whatsapp.model.info.ContextInfo contextInfo) {
        this.contextInfo = contextInfo;
        return this;
    }

    public PollCreationMessageBuilder selectableOptionsMap(java.util.Map selectableOptionsMap) {
        this.selectableOptionsMap = selectableOptionsMap;
        return this;
    }

    public PollCreationMessageBuilder selectedOptions(java.util.List selectedOptions) {
        this.selectedOptions = selectedOptions;
        return this;
    }

    public it.auties.whatsapp.model.message.standard.PollCreationMessage build() {
        return new it.auties.whatsapp.model.message.standard.PollCreationMessage(encryptionKey, title, selectableOptions, selectableOptionsCount, contextInfo, selectableOptionsMap, selectedOptions);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy