com.openfin.desktop
Class Ack

java.lang.Object
  extended by java.util.EventObject
      extended by com.openfin.desktop.Ack
All Implemented Interfaces:
Serializable

public class Ack
extends EventObject

A message that is delivered to an AckListener when an action has been processed by AppDesktop

See Also:
AckListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Ack(org.json.JSONObject object, Object source)
          Ack constructor
 
Method Summary
 Object getData()
          Returns the value of "data" from message as JObject
 org.json.JSONObject getJsonObject()
          Returns the message as a JObject
 String getReason()
          Return reason if Ack has error
 boolean isSuccessful()
          Returns Returns true if message contains "success":"true"
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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


Copyright © 2016. All rights reserved.