public static class TdApi.PremiumStatePaymentOption extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isCurrent
True, if this is the currently used Telegram Premium subscription option.
|
boolean |
isUpgrade
True, if the payment option can be used to upgrade the existing Telegram Premium subscription.
|
java.lang.String |
lastTransactionId
Identifier of the last in-store transaction for the currently used option.
|
TdApi.PremiumPaymentOption |
paymentOption
Information about the payment option.
|
| Constructor and Description |
|---|
PremiumStatePaymentOption()
Describes an option for buying or upgrading Telegram Premium for self.
|
PremiumStatePaymentOption(TdApi.PremiumPaymentOption paymentOption,
boolean isCurrent,
boolean isUpgrade,
java.lang.String lastTransactionId)
Describes an option for buying or upgrading Telegram Premium for self.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.PremiumPaymentOption paymentOption
public boolean isCurrent
public boolean isUpgrade
public java.lang.String lastTransactionId
public static final int CONSTRUCTOR
public PremiumStatePaymentOption()
public PremiumStatePaymentOption(TdApi.PremiumPaymentOption paymentOption, boolean isCurrent, boolean isUpgrade, java.lang.String lastTransactionId)
paymentOption - Information about the payment option.isCurrent - True, if this is the currently used Telegram Premium subscription option.isUpgrade - True, if the payment option can be used to upgrade the existing Telegram Premium subscription.lastTransactionId - Identifier of the last in-store transaction for the currently used option.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object