Package org.drinkless.tdlib
Class TdApi.StarGiveawayWinnerOption
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarGiveawayWinnerOption
- Enclosing class:
- TdApi
Describes an option for the number of winners of a Telegram Star giveaway.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
True, if the option must be chosen by default.int
The number of users that will be chosen as winners.long
The number of Telegram Stars that will be won by the winners of the giveaway. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes an option for the number of winners of a Telegram Star giveaway.StarGiveawayWinnerOption
(int winnerCount, long wonStarCount, boolean isDefault) Describes an option for the number of winners of a Telegram Star giveaway. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
winnerCount
public int winnerCountThe number of users that will be chosen as winners. -
wonStarCount
public long wonStarCountThe number of Telegram Stars that will be won by the winners of the giveaway. -
isDefault
public boolean isDefaultTrue, if the option must be chosen by default. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StarGiveawayWinnerOption
public StarGiveawayWinnerOption()Describes an option for the number of winners of a Telegram Star giveaway. -
StarGiveawayWinnerOption
public StarGiveawayWinnerOption(int winnerCount, long wonStarCount, boolean isDefault) Describes an option for the number of winners of a Telegram Star giveaway.- Parameters:
winnerCount
- The number of users that will be chosen as winners.wonStarCount
- The number of Telegram Stars that will be won by the winners of the giveaway.isDefault
- True, if the option must be chosen by default.
-
-
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
-