public static class TdApi.Poll extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
int |
closeDate
Point in time (Unix timestamp) when the poll will automatically be closed.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
id
Unique poll identifier.
|
boolean |
isAnonymous
True, if the poll is anonymous.
|
boolean |
isClosed
True, if the poll is closed.
|
int |
openPeriod
Amount of time the poll will be active after creation, in seconds.
|
TdApi.PollOption[] |
options
List of poll answer options.
|
java.lang.String |
question
Poll question; 1-300 characters.
|
long[] |
recentVoterUserIds
User identifiers of recent voters, if the poll is non-anonymous.
|
int |
totalVoterCount
Total number of voters, participating in the poll.
|
TdApi.PollType |
type
Type of the poll.
|
Constructor and Description |
---|
Poll()
Describes a poll.
|
Poll(long id,
java.lang.String question,
TdApi.PollOption[] options,
int totalVoterCount,
long[] recentVoterUserIds,
boolean isAnonymous,
TdApi.PollType type,
int openPeriod,
int closeDate,
boolean isClosed)
Describes a poll.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long id
public java.lang.String question
public TdApi.PollOption[] options
public int totalVoterCount
public long[] recentVoterUserIds
public boolean isAnonymous
public TdApi.PollType type
public int openPeriod
public int closeDate
public boolean isClosed
public static final int CONSTRUCTOR
public Poll()
public Poll(long id, java.lang.String question, TdApi.PollOption[] options, int totalVoterCount, long[] recentVoterUserIds, boolean isAnonymous, TdApi.PollType type, int openPeriod, int closeDate, boolean isClosed)
id
- Unique poll identifier.question
- Poll question; 1-300 characters.options
- List of poll answer options.totalVoterCount
- Total number of voters, participating in the poll.recentVoterUserIds
- User identifiers of recent voters, if the poll is non-anonymous.isAnonymous
- True, if the poll is anonymous.type
- Type of the poll.openPeriod
- Amount of time the poll will be active after creation, in seconds.closeDate
- Point in time (Unix timestamp) when the poll will automatically be closed.isClosed
- True, if the poll is closed.public int getConstructor()
getConstructor
in class TdApi.Object