Package org.drinkless.tdlib
Class TdApi.PremiumGiveawayInfoCompleted
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.PremiumGiveawayInfo
org.drinkless.tdlib.TdApi.PremiumGiveawayInfoCompleted
- Enclosing class:
- TdApi
Describes a completed giveaway.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.PremiumGiveawayInfo
TdApi.PremiumGiveawayInfo.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionintNumber of winners, which activated their gift codes.intPoint in time (Unix timestamp) when the winners were selected.static final intIdentifier uniquely determining type of the object.intPoint in time (Unix timestamp) when the giveaway was created.Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway.booleanTrue, if the giveaway was canceled and was fully refunded.intNumber of winners in the giveaway. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes a completed giveaway.PremiumGiveawayInfoCompleted(int creationDate, int actualWinnersSelectionDate, boolean wasRefunded, int winnerCount, int activationCount, String giftCode) Describes a completed giveaway. -
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
-
creationDate
public int creationDatePoint in time (Unix timestamp) when the giveaway was created. -
actualWinnersSelectionDate
public int actualWinnersSelectionDatePoint in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway. -
wasRefunded
public boolean wasRefundedTrue, if the giveaway was canceled and was fully refunded. -
winnerCount
public int winnerCountNumber of winners in the giveaway. -
activationCount
public int activationCountNumber of winners, which activated their gift codes. -
giftCode
Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PremiumGiveawayInfoCompleted
public PremiumGiveawayInfoCompleted()Describes a completed giveaway. -
PremiumGiveawayInfoCompleted
public PremiumGiveawayInfoCompleted(int creationDate, int actualWinnersSelectionDate, boolean wasRefunded, int winnerCount, int activationCount, String giftCode) Describes a completed giveaway.- Parameters:
creationDate- Point in time (Unix timestamp) when the giveaway was created.actualWinnersSelectionDate- Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway.wasRefunded- True, if the giveaway was canceled and was fully refunded.winnerCount- Number of winners in the giveaway.activationCount- Number of winners, which activated their gift codes.giftCode- Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.PremiumGiveawayInfo- Returns:
- this.CONSTRUCTOR
-