public class SendLocation extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
SendLocation() |
SendLocation(Float latitude,
Float longitude) |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
SendLocation |
disableNotification() |
SendLocation |
enableNotification() |
String |
getChatId() |
Boolean |
getDisableNotification() |
Float |
getLatitude() |
Integer |
getLivePeriod() |
Float |
getLongitude() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
ReplyKeyboard |
getReplyMarkup() |
Integer |
getReplyToMessageId() |
SendLocation |
setChatId(Long chatId) |
SendLocation |
setChatId(String chatId) |
SendLocation |
setLatitude(Float latitude) |
SendLocation |
setLivePeriod(Integer livePeriod) |
SendLocation |
setLongitude(Float longitude) |
SendLocation |
setReplyMarkup(ReplyKeyboard replyMarkup) |
SendLocation |
setReplyToMessageId(Integer replyToMessageId) |
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 SendLocation setChatId(Long 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 Integer getLivePeriod()
public SendLocation setLivePeriod(Integer livePeriod)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Message>public Message deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Message>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2019. All rights reserved.