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

it.auties.whatsapp.model.button.misc.ButtonRowOpaqueDataBuilder Maven / Gradle / Ivy

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

public class ButtonRowOpaqueDataBuilder {
    private java.util.Optional currentMessage;
    private java.util.Optional quotedMessage;

    public ButtonRowOpaqueDataBuilder() {
        currentMessage = java.util.Optional.empty();
        quotedMessage = java.util.Optional.empty();
    }

    public ButtonRowOpaqueDataBuilder currentMessage(java.util.Optional currentMessage) {
        this.currentMessage = currentMessage;
        return this;
    }
    public ButtonRowOpaqueDataBuilder currentMessage(it.auties.whatsapp.model.button.misc.ButtonOpaqueData currentMessage) {
        this.currentMessage = java.util.Optional.ofNullable(currentMessage);
        return this;
    }
    public ButtonRowOpaqueDataBuilder quotedMessage(java.util.Optional quotedMessage) {
        this.quotedMessage = quotedMessage;
        return this;
    }
    public ButtonRowOpaqueDataBuilder quotedMessage(it.auties.whatsapp.model.button.misc.ButtonOpaqueData quotedMessage) {
        this.quotedMessage = java.util.Optional.ofNullable(quotedMessage);
        return this;
    }

    public it.auties.whatsapp.model.button.misc.ButtonRowOpaqueData build() {
        return new it.auties.whatsapp.model.button.misc.ButtonRowOpaqueData(currentMessage, quotedMessage);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy