java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Poll
- Enclosing class:
- TdApi
Describes a poll.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintPoint in time (Unix timestamp) when the poll will automatically be closed.static final intlongUnique poll identifier.booleanTrue, if the poll is anonymous.booleanTrue, if the poll is closed.intAmount of time the poll will be active after creation, in seconds.List of poll answer options.Poll question; 1-300 characters.long[]User identifiers of recent voters, if the poll is non-anonymous.intTotal number of voters, participating in the poll.Type of the poll. -
Constructor Summary
ConstructorsConstructorDescriptionPoll()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.Describes a poll. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public long idUnique poll identifier. -
question
Poll question; 1-300 characters. -
options
List of poll answer options. -
totalVoterCount
public int totalVoterCountTotal number of voters, participating in the poll. -
recentVoterUserIds
public long[] recentVoterUserIdsUser identifiers of recent voters, if the poll is non-anonymous. -
isAnonymous
public boolean isAnonymousTrue, if the poll is anonymous. -
type
Type of the poll. -
openPeriod
public int openPeriodAmount of time the poll will be active after creation, in seconds. -
closeDate
public int closeDatePoint in time (Unix timestamp) when the poll will automatically be closed. -
isClosed
public boolean isClosedTrue, if the poll is closed. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
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- long Unique poll identifier.question- String Poll question; 1-300 characters.options- PollOption[] List of poll answer options.totalVoterCount- int Total number of voters, participating in the poll.recentVoterUserIds- long[] User identifiers of recent voters, if the poll is non-anonymous.isAnonymous- boolean True, if the poll is anonymous.type- PollType Type of the poll.openPeriod- int Amount of time the poll will be active after creation, in seconds.closeDate- int Point in time (Unix timestamp) when the poll will automatically be closed.isClosed- boolean True, if the poll is closed.
-
Poll
Describes a poll.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-