Class TdApi.PollTypeQuiz

Enclosing class:
TdApi

public static class TdApi.PollTypeQuiz extends TdApi.PollType
A poll in quiz mode, which has predefined correct answers.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    int[]
    Increasing list of 0-based identifiers of the correct answer options; empty for a yet unanswered poll.
    Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; empty for a yet unanswered poll.
    Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; may be null if none or the poll is unanswered yet.
  • Constructor Summary

    Constructors
    Constructor
    Description
    A poll in quiz mode, which has predefined correct answers.
    PollTypeQuiz(int[] correctOptionIds, TdApi.FormattedText explanation, TdApi.PollMedia explanationMedia)
    A poll in quiz mode, which has predefined correct answers.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • correctOptionIds

      public int[] correctOptionIds
      Increasing list of 0-based identifiers of the correct answer options; empty for a yet unanswered poll.
    • explanation

      public TdApi.FormattedText explanation
      Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; empty for a yet unanswered poll.
    • explanationMedia

      public TdApi.PollMedia explanationMedia
      Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; may be null if none or the poll is unanswered yet. If present, currently, can be only of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo.
    • CONSTRUCTOR

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

    • PollTypeQuiz

      public PollTypeQuiz()
      A poll in quiz mode, which has predefined correct answers.
    • PollTypeQuiz

      public PollTypeQuiz(int[] correctOptionIds, TdApi.FormattedText explanation, TdApi.PollMedia explanationMedia)
      A poll in quiz mode, which has predefined correct answers.
      Parameters:
      correctOptionIds - Increasing list of 0-based identifiers of the correct answer options; empty for a yet unanswered poll.
      explanation - Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; empty for a yet unanswered poll.
      explanationMedia - Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; may be null if none or the poll is unanswered yet. If present, currently, can be only of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo.
  • 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