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

com.github.messenger4j.webhook.event.MessageEchoEvent 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.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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy