com.petersamokhin.bots.sdk.utils.vkapi.CallbackApiSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vk-bot-java-sdk Show documentation
Show all versions of vk-bot-java-sdk Show documentation
SDK for interacting with VK.com API
The newest version!
package com.petersamokhin.bots.sdk.utils.vkapi;
/**
* Settings for interacting with Callback API
*/
public class CallbackApiSettings {
private String host = null, path;
private int port = 80;
private boolean autoAnswer = false;
public CallbackApiSettings(String host, int port, String path, boolean autoAnswer, boolean autoSet) {
this.host = host;
this.path = path;
this.port = port;
this.autoAnswer = autoAnswer;
CallbackApiHandler.autoSetEvents = autoSet;
}
/* Getters */
String getHost() {
return host;
}
String getPath() {
return path;
}
int getPort() {
return port;
}
boolean isAutoAnswer() {
return autoAnswer;
}
}