Package org.drinkless.tdlib
Class TdApi.CheckAuthenticationPremiumPurchase
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.CheckAuthenticationPremiumPurchase
- Enclosing class:
TdApi
Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.
Returns Ok
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionlongPaid amount, in the smallest units of the currency.static final intIdentifier uniquely determining type of the object.ISO 4217 currency code of the payment currency.intThe number of days for which the Telegram Premium subscription will be granted. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization.CheckAuthenticationPremiumPurchase(int premiumDayCount, String currency, long amount) Creates a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
currency
ISO 4217 currency code of the payment currency. -
amount
public long amountPaid amount, in the smallest units of the currency. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
Constructor Details
-
CheckAuthenticationPremiumPurchase
public CheckAuthenticationPremiumPurchase()Default constructor for a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.Returns
Ok -
CheckAuthenticationPremiumPurchase
Creates a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.Returns
Ok- Parameters:
premiumDayCount- The number of days for which the Telegram Premium subscription will be granted.currency- ISO 4217 currency code of the payment currency.amount- Paid amount, in the smallest units of the currency.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.Ok>- Returns:
- this.CONSTRUCTOR
-