예제 #1
0
        public void PopulateFromJson(JObject jsonObject)
        {
            JArray val = Serialization.JsonArray(jsonObject, "filters");

            m_filters = new List <IEntityFilter>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_filters.Add(IEntityFilterUtils.FromJsonToken(item));
                }
            }
        }
예제 #2
0
        public void PopulateFromJson(JObject jsonObject)
        {
            m_from = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "from");
            JArray val = Serialization.JsonArray(jsonObject, "onlyIf");

            m_onlyIf = new List <IEntityFilter>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_onlyIf.Add(IEntityFilterUtils.FromJsonToken(item));
                }
            }
        }
        public void PopulateFromJson(JObject jsonObject)
        {
            m_start        = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "start");
            m_includeStart = Serialization.JsonTokenValue <bool>(jsonObject, "includeStart", true);
            JArray val = Serialization.JsonArray(jsonObject, "bounceFilters");

            m_bounceFilters = new List <IEntityFilter>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_bounceFilters.Add(IEntityFilterUtils.FromJsonToken(item));
                }
            }
        }
예제 #4
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_filter = IEntityFilterUtils.FromJsonProperty(jsonObject, "filter");
 }
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_entity = IEntityFilterUtils.FromJsonProperty(jsonObject, "entity");
     m_carac  = (CaracId)Serialization.JsonTokenValue <int>(jsonObject, "carac", 0);
 }