Package com.pengrad.telegrambot.model
Class Poll
java.lang.Object
com.pengrad.telegrambot.model.Poll
- All Implemented Interfaces:
java.io.Serializable
public class Poll
extends java.lang.Object
implements java.io.Serializable
Stas Parshin
17 April 2019
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPoll.Type -
Constructor Summary
Constructors Constructor Description Poll() -
Method Summary
Modifier and Type Method Description java.lang.BooleanallowsMultipleAnswers()java.lang.IntegercloseDate()java.lang.IntegercorrectOptionId()booleanequals(java.lang.Object o)java.lang.Stringexplanation()MessageEntity[]explanationEntities()inthashCode()java.lang.Stringid()java.lang.BooleanisAnonymous()java.lang.BooleanisClosed()java.lang.IntegeropenPeriod()PollOption[]options()java.lang.Stringquestion()java.lang.StringtoString()java.lang.IntegertotalVoterCount()Poll.Typetype()
-
Constructor Details
-
Poll
public Poll()
-
-
Method Details
-
id
public java.lang.String id() -
question
public java.lang.String question() -
options
-
totalVoterCount
public java.lang.Integer totalVoterCount() -
isClosed
public java.lang.Boolean isClosed() -
isAnonymous
public java.lang.Boolean isAnonymous() -
type
-
allowsMultipleAnswers
public java.lang.Boolean allowsMultipleAnswers() -
correctOptionId
public java.lang.Integer correctOptionId() -
explanation
public java.lang.String explanation() -
explanationEntities
-
openPeriod
public java.lang.Integer openPeriod() -
closeDate
public java.lang.Integer closeDate() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-