public class SendLocation extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELD| Constructor and Description |
|---|
SendLocation() |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserializeResponse(org.json.JSONObject answer)
Deserialize a json answer to the response type to a method
|
SendLocation |
disableNotification() |
SendLocation |
enableNotification() |
String |
getChatId() |
Boolean |
getDisableNotification() |
Float |
getLatitude() |
Float |
getLongitude() |
String |
getPath()
Getter for method path (that is the same as method name)
|
ReplyKeyboard |
getReplyMarkup() |
Integer |
getReplyToMessageId() |
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) |
SendLocation |
setChatId(String chatId) |
SendLocation |
setLatitude(Float latitude) |
SendLocation |
setLongitude(Float longitude) |
SendLocation |
setReplyMarkup(ReplyKeyboard replyMarkup) |
SendLocation |
setReplyToMessageId(Integer replyToMessageId) |
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 getChatId()
public SendLocation setChatId(String chatId)
public Float getLatitude()
public SendLocation setLatitude(Float latitude)
public Float getLongitude()
public SendLocation setLongitude(Float longitude)
public Integer getReplyToMessageId()
public SendLocation setReplyToMessageId(Integer replyToMessageId)
public ReplyKeyboard getReplyMarkup()
public SendLocation setReplyMarkup(ReplyKeyboard replyMarkup)
public Boolean getDisableNotification()
public SendLocation enableNotification()
public SendLocation disableNotification()
public String getPath()
BotApiMethodgetPath in class BotApiMethod<Message>public Message deserializeResponse(org.json.JSONObject answer)
BotApiMethoddeserializeResponse in class BotApiMethod<Message>answer - Json answer receivedpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptypublic org.json.JSONObject toJson()
IToJsonpublic 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.