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

com.github.messenger4j.send.MessageResponse Maven / Gradle / Ivy

Go to download

The ultimate Java library for building Chatbots on the Facebook Messenger Platform

There is a newer version: 1.1.0
Show newest version
package com.github.messenger4j.send;

import java.util.Optional;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.ToString;

/**
 * @author Max Grabenhorst
 * @since 1.0.0
 */
@ToString
@EqualsAndHashCode
public final class MessageResponse {

    private final Optional recipientId;
    private final Optional messageId;
    private final Optional attachmentId;

    public MessageResponse(@NonNull Optional recipientId, @NonNull Optional messageId,
                           @NonNull Optional attachmentId) {
        this.recipientId = recipientId;
        this.messageId = messageId;
        this.attachmentId = attachmentId;
    }

    public Optional recipientId() {
        return recipientId;
    }

    public Optional messageId() {
        return messageId;
    }

    public Optional attachmentId() {
        return this.attachmentId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy