com.github.messenger4j.webhook.event.BaseEvent 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 lombok.EqualsAndHashCode;
import lombok.ToString;
/**
* @author Max Grabenhorst
* @since 1.0.0
*/
@ToString
@EqualsAndHashCode
public abstract class BaseEvent {
private final String senderId;
private final String recipientId;
private final Instant timestamp;
BaseEvent(String senderId, String recipientId, Instant timestamp) {
this.senderId = senderId;
this.recipientId = recipientId;
this.timestamp = timestamp;
}
public String senderId() {
return senderId;
}
public String recipientId() {
return recipientId;
}
public Instant timestamp() {
return timestamp;
}
}