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

com.petersamokhin.bots.sdk.utils.vkapi.CallbackApiSettings Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy