com.viber.bot.event.callback.OnUnsubscribe 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/.
The newest version!
package com.viber.bot.event.callback;
import com.viber.bot.event.BotEventListener;
import com.viber.bot.event.incoming.IncomingUnsubscribeEvent;
import java.util.concurrent.Future;
import static com.google.common.base.Preconditions.checkArgument;
public interface OnUnsubscribe extends BotEventListener {
void unsubscribe(IncomingUnsubscribeEvent event);
@Override
default Future emit(final Object... args) {
checkArgument(args.length == 1);
unsubscribe((IncomingUnsubscribeEvent) args[0]);
return nothing;
}
}