27 lines
793 B
Java
27 lines
793 B
Java
|
package org.telegram.telegrambots.api.methods;
|
||
|
|
||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||
|
|
||
|
import java.io.Serializable;
|
||
|
|
||
|
/**
|
||
|
* @author Ruben Bermudez
|
||
|
* @version 1.0
|
||
|
*
|
||
|
* A method of Telegram Bots Api that is fully supported in json format
|
||
|
*/
|
||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||
|
public abstract class BotApiMethod<T extends Serializable> extends PartialBotApiMethod<T> {
|
||
|
protected static final String METHOD_FIELD = "method";
|
||
|
|
||
|
/**
|
||
|
* Getter for method path (that is the same as method name)
|
||
|
* @return Method path
|
||
|
*/
|
||
|
@JsonProperty(METHOD_FIELD)
|
||
|
public abstract String getMethod();
|
||
|
}
|