com.github.messenger4j.webhook.event.MessageEchoEvent 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.webhook.event;
import java.time.Instant;
import java.util.Optional;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.ToString;
/**
* @author Max Grabenhorst
* @since 1.0.0
*/
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public final class MessageEchoEvent extends BaseEvent {
private final String messageId;
private final String appId;
private final Optional metadata;
public MessageEchoEvent(@NonNull String senderId, @NonNull String recipientId, @NonNull Instant timestamp,
@NonNull String messageId, @NonNull String appId, @NonNull Optional metadata) {
super(senderId, recipientId, timestamp);
this.messageId = messageId;
this.appId = appId;
this.metadata = metadata;
}
public String messageId() {
return messageId;
}
public String appId() {
return appId;
}
public Optional metadata() {
return metadata;
}
}