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

com.viber.bot.event.Event Maven / Gradle / Ivy

package com.viber.bot.event;

import javax.annotation.Nullable;

public enum Event {

    MESSAGE_SENT,
    MESSAGE_RECEIVED("message"),
    MESSAGE_DELIVERED("delivered"),
    MESSAGE_SEEN("seen"),

    SUBSCRIBED("subscribed"),
    UNSUBSCRIBED("unsubscribed"),

    CONVERSATION_STARTED("conversation_started"),
    WEBHOOK("webhook"),

    ERROR("failed");

    private final String serverEventName;

    Event(final @Nullable String serverEventName) {
        this.serverEventName = serverEventName;
    }

    Event() {
        this(null);
    }

    @Nullable
    public String getServerEventName() {
        return serverEventName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy