Package org.drinkless.tdlib
Class TdApi.Poll
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Poll
-
- Enclosing class:
- TdApi
public static class TdApi.Poll extends TdApi.Object
Describes a poll.
-
-
Field Summary
Fields Modifier and Type Field Description intcloseDatePoint in time (Unix timestamp) when the poll will automatically be closed.static intCONSTRUCTORIdentifier uniquely determining type of the object.longidUnique poll identifier.booleanisAnonymousTrue, if the poll is anonymous.booleanisClosedTrue, if the poll is closed.intopenPeriodAmount of time the poll will be active after creation, in seconds.TdApi.PollOption[]optionsList of poll answer options.StringquestionPoll question; 1-300 characters.long[]recentVoterUserIdsUser identifiers of recent voters, if the poll is non-anonymous.inttotalVoterCountTotal number of voters, participating in the poll.TdApi.PollTypetypeType of the poll.
-
Constructor Summary
Constructors Constructor Description Poll()Describes a poll.Poll(long id, String question, TdApi.PollOption[] options, int totalVoterCount, long[] recentVoterUserIds, boolean isAnonymous, TdApi.PollType type, int openPeriod, int closeDate, boolean isClosed)Describes a poll.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
id
public long id
Unique poll identifier.
-
question
public String question
Poll question; 1-300 characters.
-
options
public TdApi.PollOption[] options
List of poll answer options.
-
totalVoterCount
public int totalVoterCount
Total number of voters, participating in the poll.
-
recentVoterUserIds
public long[] recentVoterUserIds
User identifiers of recent voters, if the poll is non-anonymous.
-
isAnonymous
public boolean isAnonymous
True, if the poll is anonymous.
-
type
public TdApi.PollType type
Type of the poll.
-
openPeriod
public int openPeriod
Amount of time the poll will be active after creation, in seconds.
-
closeDate
public int closeDate
Point in time (Unix timestamp) when the poll will automatically be closed.
-
isClosed
public boolean isClosed
True, if the poll is closed.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Poll
public Poll()
Describes a poll.
-
Poll
public Poll(long id, String question, TdApi.PollOption[] options, int totalVoterCount, long[] recentVoterUserIds, boolean isAnonymous, TdApi.PollType type, int openPeriod, int closeDate, boolean isClosed)Describes a poll.- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-