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

it.auties.whatsapp.model.message.payment.SendPaymentMessageBuilder Maven / Gradle / Ivy

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

public class SendPaymentMessageBuilder {
    private java.util.Optional noteMessage;
    private it.auties.whatsapp.model.message.model.ChatMessageKey requestMessageKey;
    private java.util.Optional background;

    public SendPaymentMessageBuilder() {
        noteMessage = java.util.Optional.empty();
        requestMessageKey = null;
        background = java.util.Optional.empty();
    }

    public SendPaymentMessageBuilder noteMessage(java.util.Optional noteMessage) {
        this.noteMessage = noteMessage;
        return this;
    }
    public SendPaymentMessageBuilder noteMessage(it.auties.whatsapp.model.message.model.MessageContainer noteMessage) {
        this.noteMessage = java.util.Optional.ofNullable(noteMessage);
        return this;
    }
    public SendPaymentMessageBuilder requestMessageKey(it.auties.whatsapp.model.message.model.ChatMessageKey requestMessageKey) {
        this.requestMessageKey = requestMessageKey;
        return this;
    }
    public SendPaymentMessageBuilder background(java.util.Optional background) {
        this.background = background;
        return this;
    }
    public SendPaymentMessageBuilder background(it.auties.whatsapp.model.payment.PaymentBackground background) {
        this.background = java.util.Optional.ofNullable(background);
        return this;
    }

    public it.auties.whatsapp.model.message.payment.SendPaymentMessage build() {
        return new it.auties.whatsapp.model.message.payment.SendPaymentMessage(noteMessage, requestMessageKey, background);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy