protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
        {
            base.setJSON(obj, host, options);
            obj["ContextOfItems"] = ContextOfItems.getJson(this, options);
            setAttribute(obj, "RepresentationIdentifier", RepresentationIdentifier);
            setAttribute(obj, "RepresentationType", RepresentationType);
            obj["Items"] = new JArray(Items.ToList().ConvertAll(x => x.getJson(this, options)));

            if (mLayerAssignment != null)
            {
                obj["LayerAssignment"] = new JArray(mLayerAssignment.getJson(this, options));
            }
        }
Beispiel #2
0
        protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
        {
            base.setJSON(obj, host, processed);
            obj["ContextOfItems"] = ContextOfItems.getJson(this, processed);
            setAttribute(obj, "RepresentationIdentifier", RepresentationIdentifier);
            setAttribute(obj, "RepresentationType", RepresentationType);
            obj["Items"] = new JArray(Items.ToList().ConvertAll(x => x.getJson(this, processed)));

            if (mLayerAssignments.Count > 0)
            {
                obj["LayerAssignments"] = new JArray(mLayerAssignments.ConvertAll(x => x.getJson(this, processed)));
            }
        }