75 lines
1.5 KiB
Java
75 lines
1.5 KiB
Java
package it.acxent.brt.api;
|
|
|
|
import com.google.gson.JsonObject;
|
|
import it.acxent.brt.api.json.PUSPudoPoint;
|
|
import it.acxent.brt.api.json.PUSResponse;
|
|
import org.json.JSONObject;
|
|
|
|
public class BrtApiResult {
|
|
private String msg;
|
|
|
|
public BrtApiResult(String msg, boolean status, Object result) {
|
|
this.msg = msg;
|
|
this.ok = status;
|
|
this.result = result;
|
|
}
|
|
|
|
private boolean ok = true;
|
|
|
|
private PUSResponse pusResponse;
|
|
|
|
private PUSPudoPoint pusPudoPoint;
|
|
|
|
private Object result;
|
|
|
|
public BrtApiResult() {}
|
|
|
|
public String getMsg() {
|
|
return (this.msg == null) ? "" : this.msg.trim();
|
|
}
|
|
|
|
public void setMsg(String msg) {
|
|
this.msg = msg;
|
|
}
|
|
|
|
public boolean isOk() {
|
|
return this.ok;
|
|
}
|
|
|
|
public void setOk(boolean status) {
|
|
this.ok = status;
|
|
}
|
|
|
|
public Object getResult() {
|
|
return this.result;
|
|
}
|
|
|
|
public JsonObject getJsonObjectResult() {
|
|
return (JsonObject)getResult();
|
|
}
|
|
|
|
@Deprecated
|
|
public JSONObject getJSONObjectResult() {
|
|
return (JSONObject)getResult();
|
|
}
|
|
|
|
public void setResult(Object result) {
|
|
this.result = result;
|
|
}
|
|
|
|
public PUSResponse getPusResponse() {
|
|
return this.pusResponse;
|
|
}
|
|
|
|
public void setPusResponse(PUSResponse pusResponse) {
|
|
this.pusResponse = pusResponse;
|
|
}
|
|
|
|
public PUSPudoPoint getPusPudoPoint() {
|
|
return this.pusPudoPoint;
|
|
}
|
|
|
|
public void setPusPudoPoint(PUSPudoPoint pusPudoPoint) {
|
|
this.pusPudoPoint = pusPudoPoint;
|
|
}
|
|
}
|