com.petersamokhin.bots.sdk.utils.vkapi.Call 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
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" +
'}';
}
}