Module tdlight.api

Class TdApi.PushMessageContentPoll

Enclosing class:
TdApi

public static final class TdApi.PushMessageContentPoll extends TdApi.PushMessageContent
A message with a poll.
  • Field Details

    • question

      public String question
      Poll question.
    • isRegular

      public boolean isRegular
      True, if the poll is regular and not in quiz mode.
    • isPinned

      public boolean isPinned
      True, if the message is a pinned message with the specified content.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • PushMessageContentPoll

      public PushMessageContentPoll()
      A message with a poll.
    • PushMessageContentPoll

      public PushMessageContentPoll(String question, boolean isRegular, boolean isPinned)
      A message with a poll.
      Parameters:
      question - Poll question.
      isRegular - True, if the poll is regular and not in quiz mode.
      isPinned - True, if the message is a pinned message with the specified content.
    • PushMessageContentPoll

      public PushMessageContentPoll(DataInput input) throws IOException
      A message with 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object