java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.StorePaymentPurpose
it.tdlight.jni.TdApi.StorePaymentPurposePremiumGiveaway
- Enclosing class:
- TdApi
public static final class TdApi.StorePaymentPurposePremiumGiveaway
extends TdApi.StorePaymentPurpose
The user creating a Telegram Premium giveaway.
-
Field Summary
Modifier and TypeFieldDescriptionlong
Paid amount, in the smallest units of the currency.static final int
Identifier uniquely determining type of the object.ISO 4217 currency code of the payment currency.Giveaway parameters. -
Constructor Summary
ConstructorDescriptionThe user creating a Telegram Premium giveaway.StorePaymentPurposePremiumGiveaway
(TdApi.PremiumGiveawayParameters parameters, String currency, long amount) The user creating a Telegram Premium giveaway.The user creating a Telegram Premium giveaway. -
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
-
parameters
Giveaway parameters. -
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
-
StorePaymentPurposePremiumGiveaway
public StorePaymentPurposePremiumGiveaway()The user creating a Telegram Premium giveaway. -
StorePaymentPurposePremiumGiveaway
public StorePaymentPurposePremiumGiveaway(TdApi.PremiumGiveawayParameters parameters, String currency, long amount) The user creating a Telegram Premium giveaway.- Parameters:
parameters
- Giveaway parameters.currency
- ISO 4217 currency code of the payment currency.amount
- Paid amount, in the smallest units of the currency.
-
StorePaymentPurposePremiumGiveaway
The user creating a Telegram Premium giveaway.- 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()
-