public class LabeledPrice extends Object implements InputBotApiObject, Validable
Constructor and Description |
---|
LabeledPrice()
Builds an empty LabeledPrice
|
LabeledPrice(String label,
Integer amount)
Builds a LabeledPrice with mandatory parameters
|
public String getLabel()
public void setLabel(String label)
public Integer getAmount()
public void setAmount(Integer amount)
public void validate() throws TelegramApiValidationException
Validable
validate
in interface Validable
TelegramApiValidationException
- If any mandatory field is emptyCopyright © 2019. All rights reserved.