com.jelastic.api.marketplace.response.AddAppResponse Maven / Gradle / Ivy
The newest version!
/*Server class MD5: 6f4142e29c5c14d5d44a5828ec1db2ef*/
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 AddAppResponse extends ScriptEvalProxyResponse {
private String app_id = null;
public AddAppResponse() {
super();
}
public AddAppResponse(String appId) {
super();
this.app_id = appId;
}
public AddAppResponse(int result, String error) {
super(result, error);
}
public String getAppId() {
return app_id;
}
public void setAppId(String appId) {
this.app_id = appId;
}
@Override
public JSONObject _toJSON(JSONObject json) throws JSONException {
if (app_id != null) {
json.put("app_id", app_id);
}
return json;
}
@Override
public AddAppResponse _fromJSON(JSONObject json) throws JSONException {
super._fromJSON(json);
if (!(getResponse() instanceof JSONObject)) {
return this;
}
JSONObject responseJson = (JSONObject) getResponse();
if (responseJson.has("app_id")) {
this.app_id = responseJson.getString("app_id");
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy