com.viber.bot.event.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of viber-bot Show documentation
Show all versions of viber-bot Show documentation
Use this library to communicate with the Viber API to develop a bot for https://developers.viber.com/.
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;
}
}