public class SendVenue extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELD| Constructor and Description |
|---|
SendVenue() |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserializeResponse(org.json.JSONObject answer)
Deserialize a json answer to the response type to a method
|
SendVenue |
disableNotification() |
SendVenue |
enableNotification() |
String |
getAddress() |
String |
getChatId() |
Boolean |
getDisableNotification() |
String |
getFoursquareId() |
Float |
getLatitude() |
Float |
getLongitude() |
String |
getPath()
Getter for method path (that is the same as method name)
|
ReplyKeyboard |
getReplyMarkup() |
Integer |
getReplyToMessageId() |
String |
getTitle() |
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) |
SendVenue |
setAddress(String address) |
SendVenue |
setChatId(String chatId) |
SendVenue |
setFoursquareId(String foursquareId) |
SendVenue |
setLatitude(Float latitude) |
SendVenue |
setLongitude(Float longitude) |
SendVenue |
setReplyMarkup(ReplyKeyboard replyMarkup) |
SendVenue |
setReplyToMessageId(Integer replyToMessageId) |
SendVenue |
setTitle(String title) |
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 Float getLatitude()
public Float getLongitude()
public Integer getReplyToMessageId()
public ReplyKeyboard getReplyMarkup()
public SendVenue setReplyMarkup(ReplyKeyboard replyMarkup)
public Boolean getDisableNotification()
public SendVenue enableNotification()
public SendVenue disableNotification()
public String getTitle()
public String getAddress()
public String getFoursquareId()
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.