RealTime (update chat list)
This commit is contained in:
@@ -6,6 +6,8 @@ public class ResponseModel {
|
||||
private String status;
|
||||
private String message;
|
||||
private JSONObject data;
|
||||
private String requestId;
|
||||
|
||||
|
||||
|
||||
public ResponseModel(String status, String message) {
|
||||
@@ -29,4 +31,20 @@ public class ResponseModel {
|
||||
}
|
||||
|
||||
public JSONObject getData() {return this.data;}
|
||||
|
||||
public void setRequestId(String requestId) {
|
||||
this.requestId = requestId;
|
||||
}
|
||||
|
||||
|
||||
public JSONObject toJson() {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("status", this.status);
|
||||
json.put("message", this.message);
|
||||
json.put("data", this.data != null ? this.data : JSONObject.NULL);
|
||||
if (this.requestId != null) {
|
||||
json.put("request_id", this.requestId);
|
||||
}
|
||||
return json;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user