public class SetPassportDataErrors extends BotApiMethod<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
SetPassportDataErrors() |
SetPassportDataErrors(Integer userId,
List<PassportElementError> errors) |
| Modifier and Type | Method and Description |
|---|---|
SetPassportDataErrors |
addError(PassportElementError error) |
Boolean |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
List<PassportElementError> |
getErrors() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
Integer |
getUserId() |
SetPassportDataErrors |
setErrors(List<PassportElementError> errors) |
SetPassportDataErrors |
setUserId(Integer userId) |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public SetPassportDataErrors(Integer userId, List<PassportElementError> errors)
public SetPassportDataErrors()
public Integer getUserId()
public SetPassportDataErrors setUserId(Integer userId)
public List<PassportElementError> getErrors()
public SetPassportDataErrors setErrors(List<PassportElementError> errors)
public SetPassportDataErrors addError(PassportElementError error)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Boolean>public Boolean deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Boolean>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2019. All rights reserved.