Class PollOption

  • All Implemented Interfaces:

    
    public final class PollOption
    
                        

    Model representing the input required to create/update a poll option.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getId() The ID of the option to update.
      final String getText() The text of the option.
      final Map<String, Object> getExtraData() Any additional data associated with the option.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PollOption

        PollOption(String text, Map<String, Object> extraData)

        Constructs a PollOption without an id.

        Parameters:
        text - The text of the option.
        extraData - Any additional data associated with the option.
    • Method Detail

      • getId

         final String getId()

        The ID of the option to update. Should be null when used for creating a new poll option.