public abstract class PartialBotApiMethod<T extends Serializable> extends Object implements Validable
Modifier and Type | Field and Description |
---|---|
protected static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER |
Constructor and Description |
---|
PartialBotApiMethod() |
Modifier and Type | Method and Description |
---|---|
abstract T |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
public abstract T deserializeResponse(String answer) throws TelegramApiRequestException
answer
- Json answer receivedTelegramApiRequestException
Copyright © 2019. All rights reserved.