www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,75 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue