Class TermsAndConditionsCallback

  • All Implemented Interfaces:
    java.io.Serializable, Callback

    public class TermsAndConditionsCallback
    extends AbstractCallback
    A callback to collect a user's acceptance of the configured Terms & Conditions.
    See Also:
    Serialized Form
    • Constructor Detail

      • TermsAndConditionsCallback

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

        public TermsAndConditionsCallback()
    • Method Detail

      • setAttribute

        protected void setAttribute​(java.lang.String name,
                                    java.lang.Object value)
        Specified by:
        setAttribute in class AbstractCallback
      • setAccept

        public void setAccept​(boolean accept)
        Sets whether the Terms have been accepted.
        Parameters:
        accept - boolean representing the acceptance of the terms.
      • 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
      • getVersion

        public java.lang.String getVersion()
        Retrieves the version.
        Returns:
        the version
      • getTerms

        public java.lang.String getTerms()
        Retrieve the Terms & Conditions.
        Returns:
        the Terms & Conditions
      • getCreateDate

        public java.lang.String getCreateDate()
        The create date of the Terms & Conditions.
        Returns:
        the create date.