public static class TdApi.PollOption extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isBeingChosen
True, if the option is being chosen by a pending setPollAnswer request.
|
boolean |
isChosen
True, if the option was chosen by the user.
|
java.lang.String |
text
Option text; 1-100 characters.
|
int |
votePercentage
The percentage of votes for this option; 0-100.
|
int |
voterCount
Number of voters for this option, available only for closed or voted polls.
|
Constructor and Description |
---|
PollOption()
Describes one answer option of a poll.
|
PollOption(java.lang.String text,
int voterCount,
int votePercentage,
boolean isChosen,
boolean isBeingChosen)
Describes one answer option of a poll.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String text
public int voterCount
public int votePercentage
public boolean isChosen
public boolean isBeingChosen
public static final int CONSTRUCTOR
public PollOption()
public PollOption(java.lang.String text, int voterCount, int votePercentage, boolean isChosen, boolean isBeingChosen)
text
- Option text; 1-100 characters.voterCount
- Number of voters for this option, available only for closed or voted polls.votePercentage
- The percentage of votes for this option; 0-100.isChosen
- True, if the option was chosen by the user.isBeingChosen
- True, if the option is being chosen by a pending setPollAnswer request.public int getConstructor()
getConstructor
in class TdApi.Object