Class ConfirmationCallback

    • Constructor Detail

      • ConfirmationCallback

        public ConfirmationCallback​(org.json.JSONObject jsonObject,
                                    int index)
                             throws org.json.JSONException
        Throws:
        org.json.JSONException
      • ConfirmationCallback

        public ConfirmationCallback()
    • Method Detail

      • setSelectedIndex

        public void setSelectedIndex​(int selection)
        Set the selected choice.

        Parameters:
        selection - the selection represented as an index into the options list.
      • getType

        public java.lang.String getType()
        Description copied from interface: Callback
        Return the type of the Callback, the type name should align with the Callback type returned from AM
      • getOptions

        public java.util.List<java.lang.String> getOptions()
        Get the list of options.

        Returns:
        the list of options.
      • getDefaultOption

        public int getDefaultOption()
        Get the defaultChoice.

        Returns:
        the default option, represented as an index into the options list.
      • getOptionType

        public int getOptionType()
      • getMessageType

        public int getMessageType()
      • getSelectedIndex

        public int getSelectedIndex()