public CaptionAssetItem(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "asset":
                    this._Asset = ObjectFactory.Create <CaptionAsset>(propertyNode);
                    continue;

                case "entry":
                    this._Entry = ObjectFactory.Create <BaseEntry>(propertyNode);
                    continue;

                case "startTime":
                    this._StartTime = ParseInt(propertyNode.InnerText);
                    continue;

                case "endTime":
                    this._EndTime = ParseInt(propertyNode.InnerText);
                    continue;

                case "content":
                    this._Content = propertyNode.InnerText;
                    continue;
                }
            }
        }
 public CaptionAssetItem(JToken node) : base(node)
 {
     if (node["asset"] != null)
     {
         this._Asset = ObjectFactory.Create <CaptionAsset>(node["asset"]);
     }
     if (node["entry"] != null)
     {
         this._Entry = ObjectFactory.Create <BaseEntry>(node["entry"]);
     }
     if (node["startTime"] != null)
     {
         this._StartTime = ParseInt(node["startTime"].Value <string>());
     }
     if (node["endTime"] != null)
     {
         this._EndTime = ParseInt(node["endTime"].Value <string>());
     }
     if (node["content"] != null)
     {
         this._Content = node["content"].Value <string>();
     }
 }