public void Commit() { try { String resource = REQUEST.API_PATH_V1 + REQUEST.CLASSES.PATH + GetName(); // Gson gson = new Gson(); StringBuffer response = ds.getHTTPConnection().postRequest(resource, this.ds.getObjectMapper().writeValueAsString(json)); this.json = this.ds.getObjectMapper().readValue(response.ToString(), JsonJEVisClass); if (iconChanged) { CommitIconToWS(); } } catch (Exception ex) { logger.Error(ex); } ds.reloadClasses(); }
public JEVisClassWS(JEVisDataSourceWS ds, JsonJEVisClass json) { this.ds = ds; this.json = json; }