public class InputVenueMessageContent extends Object implements InputMessageContent
| Constructor and Description |
|---|
InputVenueMessageContent() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress() |
String |
getFoursquareId() |
Float |
getLatitude() |
Float |
getLongitude() |
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) |
InputVenueMessageContent |
setAddress(String address) |
InputVenueMessageContent |
setFoursquareId(String foursquareId) |
InputVenueMessageContent |
setLatitude(Float latitude) |
InputVenueMessageContent |
setLongitude(Float longitude) |
InputVenueMessageContent |
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 Float getLatitude()
public InputVenueMessageContent setLatitude(Float latitude)
public Float getLongitude()
public InputVenueMessageContent setLongitude(Float longitude)
public String getTitle()
public InputVenueMessageContent setTitle(String title)
public String getAddress()
public InputVenueMessageContent setAddress(String address)
public String getFoursquareId()
public InputVenueMessageContent setFoursquareId(String foursquareId)
public void validate()
throws TelegramApiValidationException
Validablevalidate in interface 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
serialize in interface com.fasterxml.jackson.databind.JsonSerializableIOExceptionpublic void serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
throws IOException
serializeWithType in interface com.fasterxml.jackson.databind.JsonSerializableIOExceptionCopyright © 2016. All rights reserved.