com.jelastic.api.marketplace.response.ReadLogResponse Maven / Gradle / Ivy
The newest version!
/*Server class MD5: 450010e138fd061c3b4425145ee8541d*/
package com.jelastic.api.marketplace.response;
import com.jelastic.api.response.ScriptEvalProxyResponse;
import org.json.JSONException;
import org.json.JSONObject;
/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
*/
public class ReadLogResponse extends ScriptEvalProxyResponse {
private String appid = null;
private String body = null;
public ReadLogResponse() {
super();
}
public ReadLogResponse(String appid) {
super();
this.appid = appid;
}
public ReadLogResponse(String appid, String body) {
super();
this.appid = appid;
this.body = body;
}
public ReadLogResponse(int result, String error) {
super(result, error);
}
public String getAppid() {
return appid;
}
public void setAppid(String appid) {
this.appid = appid;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
@Override
public JSONObject _toJSON(JSONObject json) throws JSONException {
if (appid != null) {
json.put("appid", appid);
}
if (body != null) {
json.put("body", body);
}
return json;
}
@Override
public ReadLogResponse _fromJSON(JSONObject json) throws JSONException {
super._fromJSON(json);
if (!(getResponse() instanceof JSONObject)) {
return this;
}
JSONObject responseJson = (JSONObject) getResponse();
if (responseJson.has("appid")) {
this.appid = responseJson.getString("appid");
}
if (responseJson.has("body")) {
this.body = responseJson.getString("body");
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy