public class SetStickerPositionInSet extends BotApiMethod<Boolean>
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
SetStickerPositionInSet() |
SetStickerPositionInSet(String sticker,
Integer position) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getMethod()
Getter for method path (that is the same as method name)
|
Integer |
getPosition() |
String |
getSticker() |
SetStickerPositionInSet |
setPosition(Integer position) |
SetStickerPositionInSet |
setSticker(String sticker) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
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 emptypublic String getSticker()
public SetStickerPositionInSet setSticker(String sticker)
public Integer getPosition()
public SetStickerPositionInSet setPosition(Integer position)
Copyright © 2018. All rights reserved.