Пример #1
0
 public LiveEntryServerNodeRecordingInfo(JToken node) : base(node)
 {
     if (node["recordedEntryId"] != null)
     {
         this._RecordedEntryId = node["recordedEntryId"].Value <string>();
     }
     if (node["duration"] != null)
     {
         this._Duration = ParseInt(node["duration"].Value <string>());
     }
     if (node["recordingStatus"] != null)
     {
         this._RecordingStatus = (EntryServerNodeRecordingStatus)ParseEnum(typeof(EntryServerNodeRecordingStatus), node["recordingStatus"].Value <string>());
     }
 }
        public LiveEntryServerNodeRecordingInfo(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "recordedEntryId":
                    this._RecordedEntryId = propertyNode.InnerText;
                    continue;

                case "duration":
                    this._Duration = ParseInt(propertyNode.InnerText);
                    continue;

                case "recordingStatus":
                    this._RecordingStatus = (EntryServerNodeRecordingStatus)ParseEnum(typeof(EntryServerNodeRecordingStatus), propertyNode.InnerText);
                    continue;
                }
            }
        }