java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.TelegramPaymentPurpose
it.tdlight.jni.TdApi.TelegramPaymentPurposePremiumGiftCodes
- Enclosing class:
- TdApi
public static final class TdApi.TelegramPaymentPurposePremiumGiftCodes
extends TdApi.TelegramPaymentPurpose
The user creating Telegram Premium gift codes for other users.
-
Field Summary
Modifier and TypeFieldDescriptionlong
Paid amount, in the smallest units of the currency.long
Identifier of the channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none.static final int
Identifier uniquely determining type of the object.ISO 4217 currency code of the payment currency.int
Number of month the Telegram Premium subscription will be active for the users.long[]
Identifiers of the users which can activate the gift codes. -
Constructor Summary
ConstructorDescriptionThe user creating Telegram Premium gift codes for other users.TelegramPaymentPurposePremiumGiftCodes
(long boostedChatId, String currency, long amount, long[] userIds, int monthCount) The user creating Telegram Premium gift codes for other users.The user creating Telegram Premium gift codes for other users. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
boostedChatId
public long boostedChatIdIdentifier of the channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none. -
currency
ISO 4217 currency code of the payment currency. -
amount
public long amountPaid amount, in the smallest units of the currency. -
userIds
public long[] userIdsIdentifiers of the users which can activate the gift codes. -
monthCount
public int monthCountNumber of month the Telegram Premium subscription will be active for the users. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
TelegramPaymentPurposePremiumGiftCodes
public TelegramPaymentPurposePremiumGiftCodes()The user creating Telegram Premium gift codes for other users. -
TelegramPaymentPurposePremiumGiftCodes
public TelegramPaymentPurposePremiumGiftCodes(long boostedChatId, String currency, long amount, long[] userIds, int monthCount) The user creating Telegram Premium gift codes for other users.- Parameters:
boostedChatId
- Identifier of the channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user; 0 if none.currency
- ISO 4217 currency code of the payment currency.amount
- Paid amount, in the smallest units of the currency.userIds
- Identifiers of the users which can activate the gift codes.monthCount
- Number of month the Telegram Premium subscription will be active for the users.
-
TelegramPaymentPurposePremiumGiftCodes
The user creating Telegram Premium gift codes for other users.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-