예제 #1
0
        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();
        }
예제 #2
0
 public JEVisClassWS(JEVisDataSourceWS ds, JsonJEVisClass json)
 {
     this.ds = ds;
     this.json = json;
 }