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

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

There is a newer version: 0.1.3
Show newest version
package com.petersamokhin.bots.sdk.utils.vkapi;

import com.petersamokhin.bots.sdk.callbacks.callbackapi.ExecuteCallback;
import org.json.JSONObject;

/**
 * Deserialized class of call to vk api using execute method
 */
public class Call {

    private String methodName;
    private JSONObject params;
    private ExecuteCallback callback;

    public Call(String methodName, JSONObject params, ExecuteCallback callback) {
        this.methodName = methodName;
        this.params = params;
        this.callback = callback;
    }

    public String getMethodName() {
        return methodName;
    }

    public JSONObject getParams() {
        return params;
    }

    public ExecuteCallback getCallback() {
        return callback;
    }

    @Override
    public String toString() {
        return "Call{" +
                "methodName='" + methodName + '\'' +
                ", params=" + params.toString() +
                ", callback=" + "some callback" +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy