public class SendContact extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELD| Constructor and Description |
|---|
SendContact() |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserializeResponse(org.json.JSONObject answer)
Deserialize a json answer to the response type to a method
|
SendContact |
disableNotification() |
SendContact |
enableNotification() |
String |
getChatId() |
Boolean |
getDisableNotification() |
String |
getFirstName() |
String |
getLastName() |
String |
getPath()
Getter for method path (that is the same as method name)
|
String |
getPhoneNumber() |
ReplyKeyboard |
getReplyMarkup() |
Integer |
getReplyToMessageId() |
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) |
SendContact |
setChatId(String chatId) |
SendContact |
setFirstName(String firstName) |
SendContact |
setLastName(String lastName) |
SendContact |
setPhoneNumber(String phoneNumber) |
SendContact |
setReplyMarkup(ReplyKeyboard replyMarkup) |
SendContact |
setReplyToMessageId(Integer replyToMessageId) |
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 SendContact setChatId(String chatId)
public Integer getReplyToMessageId()
public SendContact setReplyToMessageId(Integer replyToMessageId)
public ReplyKeyboard getReplyMarkup()
public SendContact setReplyMarkup(ReplyKeyboard replyMarkup)
public Boolean getDisableNotification()
public SendContact enableNotification()
public SendContact disableNotification()
public String getPhoneNumber()
public SendContact setPhoneNumber(String phoneNumber)
public String getFirstName()
public SendContact setFirstName(String firstName)
public String getLastName()
public SendContact setLastName(String lastName)
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.