public static class TdApi.StorePaymentPurposePremiumSubscription extends TdApi.StorePaymentPurpose
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isRestore
Pass true if this is a restore of a Telegram Premium purchase; only for App Store.
|
boolean |
isUpgrade
Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store.
|
| Constructor and Description |
|---|
StorePaymentPurposePremiumSubscription()
The user subscribing to Telegram Premium.
|
StorePaymentPurposePremiumSubscription(boolean isRestore,
boolean isUpgrade)
The user subscribing to Telegram Premium.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean isRestore
public boolean isUpgrade
public static final int CONSTRUCTOR
public StorePaymentPurposePremiumSubscription()
public StorePaymentPurposePremiumSubscription(boolean isRestore,
boolean isUpgrade)
isRestore - Pass true if this is a restore of a Telegram Premium purchase; only for App Store.isUpgrade - Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object