Esempio n. 1
0
 public DropFolderFileHandlerConfig(JToken node) : base(node)
 {
     if (node["handlerType"] != null)
     {
         this._HandlerType = (DropFolderFileHandlerType)StringEnum.Parse(typeof(DropFolderFileHandlerType), node["handlerType"].Value <string>());
     }
 }
Esempio n. 2
0
 public DropFolderFileHandlerConfig(XmlElement node) : base(node)
 {
     foreach (XmlElement propertyNode in node.ChildNodes)
     {
         switch (propertyNode.Name)
         {
         case "handlerType":
             this._HandlerType = (DropFolderFileHandlerType)StringEnum.Parse(typeof(DropFolderFileHandlerType), propertyNode.InnerText);
             continue;
         }
     }
 }
Esempio n. 3
0
 public DropFolderBaseFilter(JToken node) : base(node)
 {
     if (node["idEqual"] != null)
     {
         this._IdEqual = ParseInt(node["idEqual"].Value <string>());
     }
     if (node["idIn"] != null)
     {
         this._IdIn = node["idIn"].Value <string>();
     }
     if (node["partnerIdEqual"] != null)
     {
         this._PartnerIdEqual = ParseInt(node["partnerIdEqual"].Value <string>());
     }
     if (node["partnerIdIn"] != null)
     {
         this._PartnerIdIn = node["partnerIdIn"].Value <string>();
     }
     if (node["nameLike"] != null)
     {
         this._NameLike = node["nameLike"].Value <string>();
     }
     if (node["typeEqual"] != null)
     {
         this._TypeEqual = (DropFolderType)StringEnum.Parse(typeof(DropFolderType), node["typeEqual"].Value <string>());
     }
     if (node["typeIn"] != null)
     {
         this._TypeIn = node["typeIn"].Value <string>();
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (DropFolderStatus)ParseEnum(typeof(DropFolderStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["conversionProfileIdEqual"] != null)
     {
         this._ConversionProfileIdEqual = ParseInt(node["conversionProfileIdEqual"].Value <string>());
     }
     if (node["conversionProfileIdIn"] != null)
     {
         this._ConversionProfileIdIn = node["conversionProfileIdIn"].Value <string>();
     }
     if (node["dcEqual"] != null)
     {
         this._DcEqual = ParseInt(node["dcEqual"].Value <string>());
     }
     if (node["dcIn"] != null)
     {
         this._DcIn = node["dcIn"].Value <string>();
     }
     if (node["pathEqual"] != null)
     {
         this._PathEqual = node["pathEqual"].Value <string>();
     }
     if (node["pathLike"] != null)
     {
         this._PathLike = node["pathLike"].Value <string>();
     }
     if (node["fileHandlerTypeEqual"] != null)
     {
         this._FileHandlerTypeEqual = (DropFolderFileHandlerType)StringEnum.Parse(typeof(DropFolderFileHandlerType), node["fileHandlerTypeEqual"].Value <string>());
     }
     if (node["fileHandlerTypeIn"] != null)
     {
         this._FileHandlerTypeIn = node["fileHandlerTypeIn"].Value <string>();
     }
     if (node["fileNamePatternsLike"] != null)
     {
         this._FileNamePatternsLike = node["fileNamePatternsLike"].Value <string>();
     }
     if (node["fileNamePatternsMultiLikeOr"] != null)
     {
         this._FileNamePatternsMultiLikeOr = node["fileNamePatternsMultiLikeOr"].Value <string>();
     }
     if (node["fileNamePatternsMultiLikeAnd"] != null)
     {
         this._FileNamePatternsMultiLikeAnd = node["fileNamePatternsMultiLikeAnd"].Value <string>();
     }
     if (node["tagsLike"] != null)
     {
         this._TagsLike = node["tagsLike"].Value <string>();
     }
     if (node["tagsMultiLikeOr"] != null)
     {
         this._TagsMultiLikeOr = node["tagsMultiLikeOr"].Value <string>();
     }
     if (node["tagsMultiLikeAnd"] != null)
     {
         this._TagsMultiLikeAnd = node["tagsMultiLikeAnd"].Value <string>();
     }
     if (node["errorCodeEqual"] != null)
     {
         this._ErrorCodeEqual = (DropFolderErrorCode)StringEnum.Parse(typeof(DropFolderErrorCode), node["errorCodeEqual"].Value <string>());
     }
     if (node["errorCodeIn"] != null)
     {
         this._ErrorCodeIn = node["errorCodeIn"].Value <string>();
     }
     if (node["createdAtGreaterThanOrEqual"] != null)
     {
         this._CreatedAtGreaterThanOrEqual = ParseInt(node["createdAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["createdAtLessThanOrEqual"] != null)
     {
         this._CreatedAtLessThanOrEqual = ParseInt(node["createdAtLessThanOrEqual"].Value <string>());
     }
     if (node["updatedAtGreaterThanOrEqual"] != null)
     {
         this._UpdatedAtGreaterThanOrEqual = ParseInt(node["updatedAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["updatedAtLessThanOrEqual"] != null)
     {
         this._UpdatedAtLessThanOrEqual = ParseInt(node["updatedAtLessThanOrEqual"].Value <string>());
     }
 }
        public DropFolder(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = ParseInt(propertyNode.InnerText);
                    continue;

                case "partnerId":
                    this._PartnerId = ParseInt(propertyNode.InnerText);
                    continue;

                case "name":
                    this._Name = propertyNode.InnerText;
                    continue;

                case "description":
                    this._Description = propertyNode.InnerText;
                    continue;

                case "type":
                    this._Type = (DropFolderType)StringEnum.Parse(typeof(DropFolderType), propertyNode.InnerText);
                    continue;

                case "status":
                    this._Status = (DropFolderStatus)ParseEnum(typeof(DropFolderStatus), propertyNode.InnerText);
                    continue;

                case "conversionProfileId":
                    this._ConversionProfileId = ParseInt(propertyNode.InnerText);
                    continue;

                case "dc":
                    this._Dc = ParseInt(propertyNode.InnerText);
                    continue;

                case "path":
                    this._Path = propertyNode.InnerText;
                    continue;

                case "fileSizeCheckInterval":
                    this._FileSizeCheckInterval = ParseInt(propertyNode.InnerText);
                    continue;

                case "fileDeletePolicy":
                    this._FileDeletePolicy = (DropFolderFileDeletePolicy)ParseEnum(typeof(DropFolderFileDeletePolicy), propertyNode.InnerText);
                    continue;

                case "autoFileDeleteDays":
                    this._AutoFileDeleteDays = ParseInt(propertyNode.InnerText);
                    continue;

                case "fileHandlerType":
                    this._FileHandlerType = (DropFolderFileHandlerType)StringEnum.Parse(typeof(DropFolderFileHandlerType), propertyNode.InnerText);
                    continue;

                case "fileNamePatterns":
                    this._FileNamePatterns = propertyNode.InnerText;
                    continue;

                case "fileHandlerConfig":
                    this._FileHandlerConfig = ObjectFactory.Create <DropFolderFileHandlerConfig>(propertyNode);
                    continue;

                case "tags":
                    this._Tags = propertyNode.InnerText;
                    continue;

                case "errorCode":
                    this._ErrorCode = (DropFolderErrorCode)StringEnum.Parse(typeof(DropFolderErrorCode), propertyNode.InnerText);
                    continue;

                case "errorDescription":
                    this._ErrorDescription = propertyNode.InnerText;
                    continue;

                case "ignoreFileNamePatterns":
                    this._IgnoreFileNamePatterns = propertyNode.InnerText;
                    continue;

                case "createdAt":
                    this._CreatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAt":
                    this._UpdatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "lastAccessedAt":
                    this._LastAccessedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "incremental":
                    this._Incremental = ParseBool(propertyNode.InnerText);
                    continue;

                case "lastFileTimestamp":
                    this._LastFileTimestamp = ParseInt(propertyNode.InnerText);
                    continue;

                case "metadataProfileId":
                    this._MetadataProfileId = ParseInt(propertyNode.InnerText);
                    continue;

                case "categoriesMetadataFieldName":
                    this._CategoriesMetadataFieldName = propertyNode.InnerText;
                    continue;

                case "enforceEntitlement":
                    this._EnforceEntitlement = ParseBool(propertyNode.InnerText);
                    continue;

                case "shouldValidateKS":
                    this._ShouldValidateKS = ParseBool(propertyNode.InnerText);
                    continue;
                }
            }
        }
Esempio n. 5
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>());
     }
 }
        public DropFolderBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "idEqual":
                    this._IdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "idIn":
                    this._IdIn = propertyNode.InnerText;
                    continue;

                case "partnerIdEqual":
                    this._PartnerIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "partnerIdIn":
                    this._PartnerIdIn = propertyNode.InnerText;
                    continue;

                case "nameLike":
                    this._NameLike = propertyNode.InnerText;
                    continue;

                case "typeEqual":
                    this._TypeEqual = (DropFolderType)StringEnum.Parse(typeof(DropFolderType), propertyNode.InnerText);
                    continue;

                case "typeIn":
                    this._TypeIn = propertyNode.InnerText;
                    continue;

                case "statusEqual":
                    this._StatusEqual = (DropFolderStatus)ParseEnum(typeof(DropFolderStatus), propertyNode.InnerText);
                    continue;

                case "statusIn":
                    this._StatusIn = propertyNode.InnerText;
                    continue;

                case "conversionProfileIdEqual":
                    this._ConversionProfileIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "conversionProfileIdIn":
                    this._ConversionProfileIdIn = propertyNode.InnerText;
                    continue;

                case "dcEqual":
                    this._DcEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "dcIn":
                    this._DcIn = propertyNode.InnerText;
                    continue;

                case "pathEqual":
                    this._PathEqual = propertyNode.InnerText;
                    continue;

                case "pathLike":
                    this._PathLike = propertyNode.InnerText;
                    continue;

                case "fileHandlerTypeEqual":
                    this._FileHandlerTypeEqual = (DropFolderFileHandlerType)StringEnum.Parse(typeof(DropFolderFileHandlerType), propertyNode.InnerText);
                    continue;

                case "fileHandlerTypeIn":
                    this._FileHandlerTypeIn = propertyNode.InnerText;
                    continue;

                case "fileNamePatternsLike":
                    this._FileNamePatternsLike = propertyNode.InnerText;
                    continue;

                case "fileNamePatternsMultiLikeOr":
                    this._FileNamePatternsMultiLikeOr = propertyNode.InnerText;
                    continue;

                case "fileNamePatternsMultiLikeAnd":
                    this._FileNamePatternsMultiLikeAnd = propertyNode.InnerText;
                    continue;

                case "tagsLike":
                    this._TagsLike = propertyNode.InnerText;
                    continue;

                case "tagsMultiLikeOr":
                    this._TagsMultiLikeOr = propertyNode.InnerText;
                    continue;

                case "tagsMultiLikeAnd":
                    this._TagsMultiLikeAnd = propertyNode.InnerText;
                    continue;

                case "errorCodeEqual":
                    this._ErrorCodeEqual = (DropFolderErrorCode)StringEnum.Parse(typeof(DropFolderErrorCode), propertyNode.InnerText);
                    continue;

                case "errorCodeIn":
                    this._ErrorCodeIn = propertyNode.InnerText;
                    continue;

                case "createdAtGreaterThanOrEqual":
                    this._CreatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "createdAtLessThanOrEqual":
                    this._CreatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAtGreaterThanOrEqual":
                    this._UpdatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAtLessThanOrEqual":
                    this._UpdatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;
                }
            }
        }