public class AnswerInlineQuery extends BotApiMethod<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELD| Constructor and Description |
|---|
AnswerInlineQuery() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
deserializeResponse(org.json.JSONObject answer)
Deserialize a json answer to the response type to a method
|
Integer |
getCacheTime() |
String |
getInlineQueryId() |
String |
getNextOffset() |
String |
getPath()
Getter for method path (that is the same as method name)
|
Boolean |
getPersonal() |
List<InlineQueryResult> |
getResults() |
String |
getSwitchPmParameter() |
String |
getSwitchPmText() |
void |
serialize(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers) |
void |
serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
AnswerInlineQuery |
setCacheTime(Integer cacheTime) |
AnswerInlineQuery |
setInlineQueryId(String inlineQueryId) |
AnswerInlineQuery |
setNextOffset(String nextOffset) |
AnswerInlineQuery |
setPersonal(Boolean personal) |
AnswerInlineQuery |
setResults(List<InlineQueryResult> results) |
AnswerInlineQuery |
setSwitchPmParameter(String switchPmParameter) |
AnswerInlineQuery |
setSwitchPmText(String switchPmText) |
org.json.JSONObject |
toJson()
Convert to json object
|
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getInlineQueryId()
public AnswerInlineQuery setInlineQueryId(String inlineQueryId)
public List<InlineQueryResult> getResults()
public AnswerInlineQuery setResults(List<InlineQueryResult> results)
public Integer getCacheTime()
public AnswerInlineQuery setCacheTime(Integer cacheTime)
public Boolean getPersonal()
public AnswerInlineQuery setPersonal(Boolean personal)
public String getNextOffset()
public AnswerInlineQuery setNextOffset(String nextOffset)
public String getSwitchPmText()
public AnswerInlineQuery setSwitchPmText(String switchPmText)
public String getSwitchPmParameter()
public AnswerInlineQuery setSwitchPmParameter(String switchPmParameter)
public void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptypublic org.json.JSONObject toJson()
IToJsonpublic String getPath()
BotApiMethodgetPath in class BotApiMethod<Boolean>public Boolean deserializeResponse(org.json.JSONObject answer)
BotApiMethoddeserializeResponse in class BotApiMethod<Boolean>answer - Json answer receivedpublic void serialize(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers)
throws IOException
IOExceptionpublic void serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
throws IOException
IOExceptionCopyright © 2016. All rights reserved.