com.github.messenger4j.send.MessageResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of messenger4j Show documentation
Show all versions of messenger4j Show documentation
The ultimate Java library for building Chatbots on the Facebook Messenger Platform
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;
}
}