public class GetFile extends BotApiMethod<File>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
GetFile() |
| Modifier and Type | Method and Description |
|---|---|
File |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getFileId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
GetFile |
setFileId(String fileId) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getFileId()
public void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptypublic String getMethod()
BotApiMethodgetMethod in class BotApiMethod<File>public File deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<File>answer - Json answer receivedTelegramApiRequestExceptionCopyright © 2019. All rights reserved.