com.jelastic.api.marketplace.response.GetScriptingAppidResponse Maven / Gradle / Ivy
The newest version!
/*Server class MD5: da4091aa63ba56f3d193e810ed50e963*/
package com.jelastic.api.marketplace.response;
import com.jelastic.api.response.ScriptEvalProxyResponse;
import org.json.JSONException;
import org.json.JSONObject;
import java.lang.String;
/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
*/
public class GetScriptingAppidResponse extends ScriptEvalProxyResponse {
private String appid = null;
public GetScriptingAppidResponse() {
}
public GetScriptingAppidResponse(String appid) {
this.appid = appid;
}
public GetScriptingAppidResponse(int result, String error) {
super(result, error);
}
public String getAppid() {
return appid;
}
public void setAppid(String appid) {
this.appid = appid;
}
@Override
public JSONObject _toJSON(JSONObject json) throws JSONException {
if (appid != null) {
json.put("appid", appid);
}
return json;
}
@Override
public GetScriptingAppidResponse _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");
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy