Package it.tdlight.jni
Class TdApi.PushMessageContentPoll
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PushMessageContent
it.tdlight.jni.TdApi.PushMessageContentPoll
- Enclosing class:
- TdApi
public static class TdApi.PushMessageContentPoll extends TdApi.PushMessageContent
A message with a poll.
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
boolean
isPinned
True, if the message is a pinned message with the specified content.boolean
isRegular
True, if the poll is regular and not in quiz mode.String
question
Poll question. -
Constructor Summary
Constructors Constructor Description PushMessageContentPoll()
A message with a poll.PushMessageContentPoll(DataInput input)
PushMessageContentPoll(String question, boolean isRegular, boolean isPinned)
A message with a poll. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
question
Poll question. -
isRegular
public boolean isRegularTrue, if the poll is regular and not in quiz mode. -
isPinned
public boolean isPinnedTrue, if the message is a pinned message with the specified content. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
PushMessageContentPoll
public PushMessageContentPoll()A message with a poll. -
PushMessageContentPoll
A message with a poll.- Parameters:
question
- String Poll question.isRegular
- boolean True, if the poll is regular and not in quiz mode.isPinned
- boolean True, if the message is a pinned message with the specified content.
-
PushMessageContentPoll
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-