public abstract class BotApiMethod<T extends Serializable> extends Object implements com.fasterxml.jackson.databind.JsonSerializable, IToJson, Validable
| Modifier and Type | Field and Description |
|---|---|
protected static String |
METHOD_FIELD |
| Constructor and Description |
|---|
BotApiMethod() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
deserializeResponse(org.json.JSONObject answer)
Deserialize a json answer to the response type to a method
|
abstract String |
getPath()
Getter for method path (that is the same as method name)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected static final String METHOD_FIELD
public abstract String getPath()
public abstract T deserializeResponse(org.json.JSONObject answer)
answer - Json answer receivedCopyright © 2016. All rights reserved.