public LiveEntryFilter(JToken node) : base(node)
 {
     if (node["isLive"] != null)
     {
         this._IsLive = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["isLive"].Value <string>());
     }
     if (node["isRecordedEntryIdEmpty"] != null)
     {
         this._IsRecordedEntryIdEmpty = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["isRecordedEntryIdEmpty"].Value <string>());
     }
     if (node["hasMediaServerHostname"] != null)
     {
         this._HasMediaServerHostname = node["hasMediaServerHostname"].Value <string>();
     }
     if (node["orderBy"] != null)
     {
         this._OrderBy = (LiveEntryOrderBy)StringEnum.Parse(typeof(LiveEntryOrderBy), node["orderBy"].Value <string>());
     }
 }
예제 #2
0
        public LiveEntryFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "isLive":
                    this._IsLive = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

                case "isRecordedEntryIdEmpty":
                    this._IsRecordedEntryIdEmpty = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

                case "hasMediaServerHostname":
                    this._HasMediaServerHostname = propertyNode.InnerText;
                    continue;

                case "orderBy":
                    this._OrderBy = (LiveEntryOrderBy)StringEnum.Parse(typeof(LiveEntryOrderBy), propertyNode.InnerText);
                    continue;
                }
            }
        }