java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Poll
- Enclosing class:
- TdApi
Describes a poll.
-
Field Summary
Modifier and TypeFieldDescriptionint
Point in time (Unix timestamp) when the poll will automatically be closed.static final int
Identifier uniquely determining type of the object.long
Unique poll identifier.boolean
True, if the poll is anonymous.boolean
True, if the poll is closed.int
Amount of time the poll will be active after creation, in seconds.List of poll answer options.Poll question; 1-300 characters.Identifiers of recent voters, if the poll is non-anonymous.int
Total number of voters, participating in the poll.Type of the poll. -
Constructor Summary
ConstructorDescriptionPoll()
Describes a poll.Poll
(long id, String question, TdApi.PollOption[] options, int totalVoterCount, TdApi.MessageSender[] recentVoterIds, boolean isAnonymous, TdApi.PollType type, int openPeriod, int closeDate, boolean isClosed) Describes a poll.Describes a poll. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods 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. -
recentVoterIds
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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
Poll
public Poll()Describes a poll. -
Poll
public Poll(long id, String question, TdApi.PollOption[] options, int totalVoterCount, TdApi.MessageSender[] recentVoterIds, 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.recentVoterIds
- 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.
-
Poll
Describes a poll.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-