public class InlineKeyboardButton extends Object implements IBotApiObject, IToJson, Validable
| Constructor and Description |
|---|
InlineKeyboardButton() |
InlineKeyboardButton(org.json.JSONObject jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCallbackData() |
CallbackGame |
getCallbackGame() |
String |
getSwitchInlineQuery() |
String |
getSwitchInlineQueryCurrentChat() |
String |
getText() |
String |
getUrl() |
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) |
InlineKeyboardButton |
setCallbackData(String callbackData) |
InlineKeyboardButton |
setCallbackGame(CallbackGame callbackGame) |
InlineKeyboardButton |
setSwitchInlineQuery(String switchInlineQuery) |
InlineKeyboardButton |
setSwitchInlineQueryCurrentChat(String switchInlineQueryCurrentChat) |
InlineKeyboardButton |
setText(String text) |
InlineKeyboardButton |
setUrl(String url) |
org.json.JSONObject |
toJson()
Convert to json object
|
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public InlineKeyboardButton()
public InlineKeyboardButton(org.json.JSONObject jsonObject)
public String getText()
public InlineKeyboardButton setText(String text)
public String getUrl()
public InlineKeyboardButton setUrl(String url)
public String getCallbackData()
public InlineKeyboardButton setCallbackData(String callbackData)
public String getSwitchInlineQuery()
public InlineKeyboardButton setSwitchInlineQuery(String switchInlineQuery)
public CallbackGame getCallbackGame()
public InlineKeyboardButton setCallbackGame(CallbackGame callbackGame)
public String getSwitchInlineQueryCurrentChat()
public InlineKeyboardButton setSwitchInlineQueryCurrentChat(String switchInlineQueryCurrentChat)
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.