Class Ack

    • Constructor Detail

      • Ack

        public Ack​(org.json.JSONObject object,
                   Object source)
        Ack constructor
        Parameters:
        object - Message being delivered to the listener
        source - The message source
    • Method Detail

      • isSuccessful

        public boolean isSuccessful()
        Returns Returns true if message contains "success":"true"
        Returns:
        Returns true if message contains "success":"true"
      • getReason

        public String getReason()
        Return reason if Ack has error
        Returns:
        reason for error
      • getJsonObject

        public org.json.JSONObject getJsonObject()
        Returns the message as a JObject
        Returns:
        the message as a JObject
      • getData

        public Object getData()
        Returns the value of "data" from message as JObject
        Returns:
        the value of "data" from message as JObject
      • getErrorStack

        public String getErrorStack()
        When the ack was not successful, it might cause Openfin Desktop Runtime error. This method returns the stack trace of the error, if it's available.
        Returns:
        the stack trace of runtime error, null if not available.