public static class TdApi.GiveawayInfoCompleted extends TdApi.GiveawayInfo
| Modifier and Type | Field and Description |
|---|---|
int |
activationCount
Number of winners, which activated their gift codes; for Telegram Premium giveaways only.
|
int |
actualWinnersSelectionDate
Point in time (Unix timestamp) when the winners were selected.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
creationDate
Point in time (Unix timestamp) when the giveaway was created.
|
java.lang.String |
giftCode
Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Premium giveaway.
|
boolean |
isWinner
True, if the current user is a winner of the giveaway.
|
boolean |
wasRefunded
True, if the giveaway was canceled and was fully refunded.
|
int |
winnerCount
Number of winners in the giveaway.
|
long |
wonStarCount
The amount of Telegram Stars won by the current user; 0 if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Star giveaway.
|
| Constructor and Description |
|---|
GiveawayInfoCompleted()
Describes a completed giveaway.
|
GiveawayInfoCompleted(int creationDate,
int actualWinnersSelectionDate,
boolean wasRefunded,
boolean isWinner,
int winnerCount,
int activationCount,
java.lang.String giftCode,
long wonStarCount)
Describes a completed giveaway.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int creationDate
public int actualWinnersSelectionDate
public boolean wasRefunded
public boolean isWinner
public int winnerCount
public int activationCount
public java.lang.String giftCode
public long wonStarCount
public static final int CONSTRUCTOR
public GiveawayInfoCompleted()
public GiveawayInfoCompleted(int creationDate,
int actualWinnersSelectionDate,
boolean wasRefunded,
boolean isWinner,
int winnerCount,
int activationCount,
java.lang.String giftCode,
long wonStarCount)
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.isWinner - True, if the current user is a winner of the giveaway.winnerCount - Number of winners in the giveaway.activationCount - Number of winners, which activated their gift codes; for Telegram Premium giveaways only.giftCode - Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Premium giveaway.wonStarCount - The amount of Telegram Stars won by the current user; 0 if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Star giveaway.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object