public ConvartableJobData(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "srcFileSyncLocalPath":
                    this._SrcFileSyncLocalPath = propertyNode.InnerText;
                    continue;

                case "actualSrcFileSyncLocalPath":
                    this._ActualSrcFileSyncLocalPath = propertyNode.InnerText;
                    continue;

                case "srcFileSyncRemoteUrl":
                    this._SrcFileSyncRemoteUrl = propertyNode.InnerText;
                    continue;

                case "srcFileSyncs":
                    this._SrcFileSyncs = new List <SourceFileSyncDescriptor>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this._SrcFileSyncs.Add(ObjectFactory.Create <SourceFileSyncDescriptor>(arrayNode));
                    }
                    continue;

                case "engineVersion":
                    this._EngineVersion = ParseInt(propertyNode.InnerText);
                    continue;

                case "flavorParamsOutputId":
                    this._FlavorParamsOutputId = ParseInt(propertyNode.InnerText);
                    continue;

                case "flavorParamsOutput":
                    this._FlavorParamsOutput = ObjectFactory.Create <FlavorParamsOutput>(propertyNode);
                    continue;

                case "mediaInfoId":
                    this._MediaInfoId = ParseInt(propertyNode.InnerText);
                    continue;

                case "currentOperationSet":
                    this._CurrentOperationSet = ParseInt(propertyNode.InnerText);
                    continue;

                case "currentOperationIndex":
                    this._CurrentOperationIndex = ParseInt(propertyNode.InnerText);
                    continue;

                case "pluginData":
                    this._PluginData = new List <KeyValue>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this._PluginData.Add(ObjectFactory.Create <KeyValue>(arrayNode));
                    }
                    continue;
                }
            }
        }
 public ConvartableJobData(JToken node) : base(node)
 {
     if (node["srcFileSyncLocalPath"] != null)
     {
         this._SrcFileSyncLocalPath = node["srcFileSyncLocalPath"].Value <string>();
     }
     if (node["actualSrcFileSyncLocalPath"] != null)
     {
         this._ActualSrcFileSyncLocalPath = node["actualSrcFileSyncLocalPath"].Value <string>();
     }
     if (node["srcFileSyncRemoteUrl"] != null)
     {
         this._SrcFileSyncRemoteUrl = node["srcFileSyncRemoteUrl"].Value <string>();
     }
     if (node["srcFileSyncs"] != null)
     {
         this._SrcFileSyncs = new List <SourceFileSyncDescriptor>();
         foreach (var arrayNode in node["srcFileSyncs"].Children())
         {
             this._SrcFileSyncs.Add(ObjectFactory.Create <SourceFileSyncDescriptor>(arrayNode));
         }
     }
     if (node["engineVersion"] != null)
     {
         this._EngineVersion = ParseInt(node["engineVersion"].Value <string>());
     }
     if (node["flavorParamsOutputId"] != null)
     {
         this._FlavorParamsOutputId = ParseInt(node["flavorParamsOutputId"].Value <string>());
     }
     if (node["flavorParamsOutput"] != null)
     {
         this._FlavorParamsOutput = ObjectFactory.Create <FlavorParamsOutput>(node["flavorParamsOutput"]);
     }
     if (node["mediaInfoId"] != null)
     {
         this._MediaInfoId = ParseInt(node["mediaInfoId"].Value <string>());
     }
     if (node["currentOperationSet"] != null)
     {
         this._CurrentOperationSet = ParseInt(node["currentOperationSet"].Value <string>());
     }
     if (node["currentOperationIndex"] != null)
     {
         this._CurrentOperationIndex = ParseInt(node["currentOperationIndex"].Value <string>());
     }
     if (node["pluginData"] != null)
     {
         this._PluginData = new List <KeyValue>();
         foreach (var arrayNode in node["pluginData"].Children())
         {
             this._PluginData.Add(ObjectFactory.Create <KeyValue>(arrayNode));
         }
     }
 }