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

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

Go to download

Use this library to communicate with the Viber API to develop a bot for https://developers.viber.com/.

There is a newer version: 1.0.11
Show newest version
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_opened"),
    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