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 intIdentifier uniquely determining type of the object.booleanTrue, if the option must be chosen by default.intThe number of users that will be chosen as winners.longThe 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 TypeMethodDescriptionintReturns 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-