Class InputLocationMessageContent
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.inputmessagecontent.InputLocationMessageContent
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InputMessageContent
public class InputLocationMessageContent extends Object implements InputMessageContent
- Version:
- 1.0 Represents the content of a location message to be sent as the result of an inline query.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InputLocationMessageContent()InputLocationMessageContent(Float latitude, Float longitude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FloatgetLatitude()IntegergetLivePeriod()FloatgetLongitude()InputLocationMessageContentsetLatitude(Float latitude)InputLocationMessageContentsetLivePeriod(Integer livePeriod)InputLocationMessageContentsetLongitude(Float longitude)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getLongitude
public Float getLongitude()
-
setLongitude
public InputLocationMessageContent setLongitude(Float longitude)
-
getLatitude
public Float getLatitude()
-
setLatitude
public InputLocationMessageContent setLatitude(Float latitude)
-
getLivePeriod
public Integer getLivePeriod()
-
setLivePeriod
public InputLocationMessageContent setLivePeriod(Integer livePeriod)
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-