java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.StorePaymentPurpose
it.tdlight.jni.TdApi.StorePaymentPurposeGiftedPremium
- Enclosing class:
- TdApi
The user gifted Telegram Premium to another user.
-
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.long
Identifier of the user for which Premium was gifted. -
Constructor Summary
ConstructorDescriptionThe user gifted Telegram Premium to another user.StorePaymentPurposeGiftedPremium
(long userId, String currency, long amount) The user gifted Telegram Premium to another user.The user gifted Telegram Premium to another user. -
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
-
userId
public long userIdIdentifier of the user for which Premium was gifted. -
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
-
StorePaymentPurposeGiftedPremium
public StorePaymentPurposeGiftedPremium()The user gifted Telegram Premium to another user. -
StorePaymentPurposeGiftedPremium
The user gifted Telegram Premium to another user.- Parameters:
userId
- Identifier of the user for which Premium was gifted.currency
- ISO 4217 currency code of the payment currency.amount
- Paid amount, in the smallest units of the currency.
-
StorePaymentPurposeGiftedPremium
The user gifted Telegram Premium to another user.- 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()
-