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

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

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

import it.auties.protobuf.annotation.ProtobufMessage;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufType;
import it.auties.whatsapp.model.message.model.ChatMessageKey;
import it.auties.whatsapp.model.message.model.MessageContainer;
import it.auties.whatsapp.model.message.model.MessageType;
import it.auties.whatsapp.model.message.model.PaymentMessage;
import it.auties.whatsapp.model.payment.PaymentBackground;

import java.util.Optional;

/**
 * A model class that represents a message to confirm a {@link RequestPaymentMessage}.
 */
@ProtobufMessage(name = "Message.SendPaymentMessage")
public record SendPaymentMessage(
        @ProtobufProperty(index = 2, type = ProtobufType.OBJECT)
        Optional noteMessage,
        @ProtobufProperty(index = 3, type = ProtobufType.OBJECT)
        ChatMessageKey requestMessageKey,
        @ProtobufProperty(index = 4, type = ProtobufType.OBJECT)
        Optional background
) implements PaymentMessage {

    @Override
    public MessageType type() {
        return MessageType.SEND_PAYMENT;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy