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
|
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()
Copyright © 2019. All rights reserved.