public class Ack extends EventObject
AckListener,
Serialized Formsource| Constructor and Description |
|---|
Ack(org.json.JSONObject object,
Object source)
Ack constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getData()
Returns the value of "data" from message as JObject
|
String |
getErrorStack()
When the ack was not successful, it might cause Openfin Desktop Runtime error.
|
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"
|
getSource, toStringpublic Ack(org.json.JSONObject object,
Object source)
object - Message being delivered to the listenersource - The message sourcepublic boolean isSuccessful()
public String getReason()
public org.json.JSONObject getJsonObject()
public Object getData()
public String getErrorStack()
Copyright © 2022. All rights reserved.