Package org.drinkless.tdlib
Class TdApi.GiftAuctionAcquiredGift
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.GiftAuctionAcquiredGift
- Enclosing class:
- TdApi
Represents a gift that was acquired by the current user on an auction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintIdentifier of the auction round in which the gift was acquired.intPosition of the user in the round among all auction participants.static final intIdentifier uniquely determining type of the object.intPoint in time (Unix timestamp) when the gift was acquired.booleanTrue, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.Receiver of the gift.longThe number of Telegram Stars that were paid for the gift.Message added to the gift.intUnique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned. -
Constructor Summary
ConstructorsConstructorDescriptionRepresents a gift that was acquired by the current user on an auction.GiftAuctionAcquiredGift(TdApi.MessageSender receiverId, int date, long starCount, int auctionRoundNumber, int auctionRoundPosition, int uniqueGiftNumber, TdApi.FormattedText text, boolean isPrivate) Represents a gift that was acquired by the current user on an auction. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
receiverId
Receiver of the gift. -
date
public int datePoint in time (Unix timestamp) when the gift was acquired. -
starCount
public long starCountThe number of Telegram Stars that were paid for the gift. -
auctionRoundNumber
public int auctionRoundNumberIdentifier of the auction round in which the gift was acquired. -
auctionRoundPosition
public int auctionRoundPositionPosition of the user in the round among all auction participants. -
uniqueGiftNumber
public int uniqueGiftNumberUnique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned. -
text
Message added to the gift. -
isPrivate
public boolean isPrivateTrue, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GiftAuctionAcquiredGift
public GiftAuctionAcquiredGift()Represents a gift that was acquired by the current user on an auction. -
GiftAuctionAcquiredGift
public GiftAuctionAcquiredGift(TdApi.MessageSender receiverId, int date, long starCount, int auctionRoundNumber, int auctionRoundPosition, int uniqueGiftNumber, TdApi.FormattedText text, boolean isPrivate) Represents a gift that was acquired by the current user on an auction.- Parameters:
receiverId- Receiver of the gift.date- Point in time (Unix timestamp) when the gift was acquired.starCount- The number of Telegram Stars that were paid for the gift.auctionRoundNumber- Identifier of the auction round in which the gift was acquired.auctionRoundPosition- Position of the user in the round among all auction participants.uniqueGiftNumber- Unique number of the gift among gifts upgraded from the same gift after upgrade; 0 if yet unassigned.text- Message added to the gift.isPrivate- True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-