示例#1
0
 public DropFolder(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["name"] != null)
     {
         this._Name = node["name"].Value <string>();
     }
     if (node["description"] != null)
     {
         this._Description = node["description"].Value <string>();
     }
     if (node["type"] != null)
     {
         this._Type = (DropFolderType)StringEnum.Parse(typeof(DropFolderType), node["type"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (DropFolderStatus)ParseEnum(typeof(DropFolderStatus), node["status"].Value <string>());
     }
     if (node["conversionProfileId"] != null)
     {
         this._ConversionProfileId = ParseInt(node["conversionProfileId"].Value <string>());
     }
     if (node["dc"] != null)
     {
         this._Dc = ParseInt(node["dc"].Value <string>());
     }
     if (node["path"] != null)
     {
         this._Path = node["path"].Value <string>();
     }
     if (node["fileSizeCheckInterval"] != null)
     {
         this._FileSizeCheckInterval = ParseInt(node["fileSizeCheckInterval"].Value <string>());
     }
     if (node["fileDeletePolicy"] != null)
     {
         this._FileDeletePolicy = (DropFolderFileDeletePolicy)ParseEnum(typeof(DropFolderFileDeletePolicy), node["fileDeletePolicy"].Value <string>());
     }
     if (node["autoFileDeleteDays"] != null)
     {
         this._AutoFileDeleteDays = ParseInt(node["autoFileDeleteDays"].Value <string>());
     }
     if (node["fileHandlerType"] != null)
     {
         this._FileHandlerType = (DropFolderFileHandlerType)StringEnum.Parse(typeof(DropFolderFileHandlerType), node["fileHandlerType"].Value <string>());
     }
     if (node["fileNamePatterns"] != null)
     {
         this._FileNamePatterns = node["fileNamePatterns"].Value <string>();
     }
     if (node["fileHandlerConfig"] != null)
     {
         this._FileHandlerConfig = ObjectFactory.Create <DropFolderFileHandlerConfig>(node["fileHandlerConfig"]);
     }
     if (node["tags"] != null)
     {
         this._Tags = node["tags"].Value <string>();
     }
     if (node["errorCode"] != null)
     {
         this._ErrorCode = (DropFolderErrorCode)StringEnum.Parse(typeof(DropFolderErrorCode), node["errorCode"].Value <string>());
     }
     if (node["errorDescription"] != null)
     {
         this._ErrorDescription = node["errorDescription"].Value <string>();
     }
     if (node["ignoreFileNamePatterns"] != null)
     {
         this._IgnoreFileNamePatterns = node["ignoreFileNamePatterns"].Value <string>();
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["lastAccessedAt"] != null)
     {
         this._LastAccessedAt = ParseInt(node["lastAccessedAt"].Value <string>());
     }
     if (node["incremental"] != null)
     {
         this._Incremental = ParseBool(node["incremental"].Value <string>());
     }
     if (node["lastFileTimestamp"] != null)
     {
         this._LastFileTimestamp = ParseInt(node["lastFileTimestamp"].Value <string>());
     }
     if (node["metadataProfileId"] != null)
     {
         this._MetadataProfileId = ParseInt(node["metadataProfileId"].Value <string>());
     }
     if (node["categoriesMetadataFieldName"] != null)
     {
         this._CategoriesMetadataFieldName = node["categoriesMetadataFieldName"].Value <string>();
     }
     if (node["enforceEntitlement"] != null)
     {
         this._EnforceEntitlement = ParseBool(node["enforceEntitlement"].Value <string>());
     }
     if (node["shouldValidateKS"] != null)
     {
         this._ShouldValidateKS = ParseBool(node["shouldValidateKS"].Value <string>());
     }
 }