public void PopulateFromJson(JObject jsonObject)
        {
            m_from = ISingleCoordSelectorUtils.FromJsonProperty(jsonObject, "from");
            JArray val = Serialization.JsonArray(jsonObject, "onlyIf");

            m_onlyIf = new List <ICoordFilter>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_onlyIf.Add(ICoordFilterUtils.FromJsonToken(item));
                }
            }
        }
Esempio n. 2
0
        public override void PopulateFromJson(JObject jsonObject)
        {
            base.PopulateFromJson(jsonObject);
            JArray val = Serialization.JsonArray(jsonObject, "filters");

            m_filters = new List <ICoordFilter>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_filters.Add(ICoordFilterUtils.FromJsonToken(item));
                }
            }
        }
Esempio n. 3
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_filter = ICoordFilterUtils.FromJsonProperty(jsonObject, "filter");
 }