public ContentDistributionSearchItem(JToken node) : base(node)
 {
     if (node["noDistributionProfiles"] != null)
     {
         this._NoDistributionProfiles = ParseBool(node["noDistributionProfiles"].Value <string>());
     }
     if (node["distributionProfileId"] != null)
     {
         this._DistributionProfileId = ParseInt(node["distributionProfileId"].Value <string>());
     }
     if (node["distributionSunStatus"] != null)
     {
         this._DistributionSunStatus = (EntryDistributionSunStatus)ParseEnum(typeof(EntryDistributionSunStatus), node["distributionSunStatus"].Value <string>());
     }
     if (node["entryDistributionFlag"] != null)
     {
         this._EntryDistributionFlag = (EntryDistributionFlag)ParseEnum(typeof(EntryDistributionFlag), node["entryDistributionFlag"].Value <string>());
     }
     if (node["entryDistributionStatus"] != null)
     {
         this._EntryDistributionStatus = (EntryDistributionStatus)ParseEnum(typeof(EntryDistributionStatus), node["entryDistributionStatus"].Value <string>());
     }
     if (node["hasEntryDistributionValidationErrors"] != null)
     {
         this._HasEntryDistributionValidationErrors = ParseBool(node["hasEntryDistributionValidationErrors"].Value <string>());
     }
     if (node["entryDistributionValidationErrors"] != null)
     {
         this._EntryDistributionValidationErrors = node["entryDistributionValidationErrors"].Value <string>();
     }
 }
        public ContentDistributionSearchItem(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "noDistributionProfiles":
                    this._NoDistributionProfiles = ParseBool(propertyNode.InnerText);
                    continue;

                case "distributionProfileId":
                    this._DistributionProfileId = ParseInt(propertyNode.InnerText);
                    continue;

                case "distributionSunStatus":
                    this._DistributionSunStatus = (EntryDistributionSunStatus)ParseEnum(typeof(EntryDistributionSunStatus), propertyNode.InnerText);
                    continue;

                case "entryDistributionFlag":
                    this._EntryDistributionFlag = (EntryDistributionFlag)ParseEnum(typeof(EntryDistributionFlag), propertyNode.InnerText);
                    continue;

                case "entryDistributionStatus":
                    this._EntryDistributionStatus = (EntryDistributionStatus)ParseEnum(typeof(EntryDistributionStatus), propertyNode.InnerText);
                    continue;

                case "hasEntryDistributionValidationErrors":
                    this._HasEntryDistributionValidationErrors = ParseBool(propertyNode.InnerText);
                    continue;

                case "entryDistributionValidationErrors":
                    this._EntryDistributionValidationErrors = propertyNode.InnerText;
                    continue;
                }
            }
        }
예제 #3
0
 public EntryDistribution(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].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["submittedAt"] != null)
     {
         this._SubmittedAt = ParseInt(node["submittedAt"].Value <string>());
     }
     if (node["entryId"] != null)
     {
         this._EntryId = node["entryId"].Value <string>();
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["distributionProfileId"] != null)
     {
         this._DistributionProfileId = ParseInt(node["distributionProfileId"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (EntryDistributionStatus)ParseEnum(typeof(EntryDistributionStatus), node["status"].Value <string>());
     }
     if (node["sunStatus"] != null)
     {
         this._SunStatus = (EntryDistributionSunStatus)ParseEnum(typeof(EntryDistributionSunStatus), node["sunStatus"].Value <string>());
     }
     if (node["dirtyStatus"] != null)
     {
         this._DirtyStatus = (EntryDistributionFlag)ParseEnum(typeof(EntryDistributionFlag), node["dirtyStatus"].Value <string>());
     }
     if (node["thumbAssetIds"] != null)
     {
         this._ThumbAssetIds = node["thumbAssetIds"].Value <string>();
     }
     if (node["flavorAssetIds"] != null)
     {
         this._FlavorAssetIds = node["flavorAssetIds"].Value <string>();
     }
     if (node["assetIds"] != null)
     {
         this._AssetIds = node["assetIds"].Value <string>();
     }
     if (node["sunrise"] != null)
     {
         this._Sunrise = ParseInt(node["sunrise"].Value <string>());
     }
     if (node["sunset"] != null)
     {
         this._Sunset = ParseInt(node["sunset"].Value <string>());
     }
     if (node["remoteId"] != null)
     {
         this._RemoteId = node["remoteId"].Value <string>();
     }
     if (node["plays"] != null)
     {
         this._Plays = ParseInt(node["plays"].Value <string>());
     }
     if (node["views"] != null)
     {
         this._Views = ParseInt(node["views"].Value <string>());
     }
     if (node["validationErrors"] != null)
     {
         this._ValidationErrors = new List <DistributionValidationError>();
         foreach (var arrayNode in node["validationErrors"].Children())
         {
             this._ValidationErrors.Add(ObjectFactory.Create <DistributionValidationError>(arrayNode));
         }
     }
     if (node["errorType"] != null)
     {
         this._ErrorType = (BatchJobErrorTypes)ParseEnum(typeof(BatchJobErrorTypes), node["errorType"].Value <string>());
     }
     if (node["errorNumber"] != null)
     {
         this._ErrorNumber = ParseInt(node["errorNumber"].Value <string>());
     }
     if (node["errorDescription"] != null)
     {
         this._ErrorDescription = node["errorDescription"].Value <string>();
     }
     if (node["hasSubmitResultsLog"] != null)
     {
         this._HasSubmitResultsLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["hasSubmitResultsLog"].Value <string>());
     }
     if (node["hasSubmitSentDataLog"] != null)
     {
         this._HasSubmitSentDataLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["hasSubmitSentDataLog"].Value <string>());
     }
     if (node["hasUpdateResultsLog"] != null)
     {
         this._HasUpdateResultsLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["hasUpdateResultsLog"].Value <string>());
     }
     if (node["hasUpdateSentDataLog"] != null)
     {
         this._HasUpdateSentDataLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["hasUpdateSentDataLog"].Value <string>());
     }
     if (node["hasDeleteResultsLog"] != null)
     {
         this._HasDeleteResultsLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["hasDeleteResultsLog"].Value <string>());
     }
     if (node["hasDeleteSentDataLog"] != null)
     {
         this._HasDeleteSentDataLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["hasDeleteSentDataLog"].Value <string>());
     }
 }
 public EntryDistributionBaseFilter(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["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>());
     }
     if (node["submittedAtGreaterThanOrEqual"] != null)
     {
         this._SubmittedAtGreaterThanOrEqual = ParseInt(node["submittedAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["submittedAtLessThanOrEqual"] != null)
     {
         this._SubmittedAtLessThanOrEqual = ParseInt(node["submittedAtLessThanOrEqual"].Value <string>());
     }
     if (node["entryIdEqual"] != null)
     {
         this._EntryIdEqual = node["entryIdEqual"].Value <string>();
     }
     if (node["entryIdIn"] != null)
     {
         this._EntryIdIn = node["entryIdIn"].Value <string>();
     }
     if (node["distributionProfileIdEqual"] != null)
     {
         this._DistributionProfileIdEqual = ParseInt(node["distributionProfileIdEqual"].Value <string>());
     }
     if (node["distributionProfileIdIn"] != null)
     {
         this._DistributionProfileIdIn = node["distributionProfileIdIn"].Value <string>();
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (EntryDistributionStatus)ParseEnum(typeof(EntryDistributionStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["dirtyStatusEqual"] != null)
     {
         this._DirtyStatusEqual = (EntryDistributionFlag)ParseEnum(typeof(EntryDistributionFlag), node["dirtyStatusEqual"].Value <string>());
     }
     if (node["dirtyStatusIn"] != null)
     {
         this._DirtyStatusIn = node["dirtyStatusIn"].Value <string>();
     }
     if (node["sunriseGreaterThanOrEqual"] != null)
     {
         this._SunriseGreaterThanOrEqual = ParseInt(node["sunriseGreaterThanOrEqual"].Value <string>());
     }
     if (node["sunriseLessThanOrEqual"] != null)
     {
         this._SunriseLessThanOrEqual = ParseInt(node["sunriseLessThanOrEqual"].Value <string>());
     }
     if (node["sunsetGreaterThanOrEqual"] != null)
     {
         this._SunsetGreaterThanOrEqual = ParseInt(node["sunsetGreaterThanOrEqual"].Value <string>());
     }
     if (node["sunsetLessThanOrEqual"] != null)
     {
         this._SunsetLessThanOrEqual = ParseInt(node["sunsetLessThanOrEqual"].Value <string>());
     }
 }
        public EntryDistribution(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = ParseInt(propertyNode.InnerText);
                    continue;

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

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

                case "submittedAt":
                    this._SubmittedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "entryId":
                    this._EntryId = propertyNode.InnerText;
                    continue;

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

                case "distributionProfileId":
                    this._DistributionProfileId = ParseInt(propertyNode.InnerText);
                    continue;

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

                case "sunStatus":
                    this._SunStatus = (EntryDistributionSunStatus)ParseEnum(typeof(EntryDistributionSunStatus), propertyNode.InnerText);
                    continue;

                case "dirtyStatus":
                    this._DirtyStatus = (EntryDistributionFlag)ParseEnum(typeof(EntryDistributionFlag), propertyNode.InnerText);
                    continue;

                case "thumbAssetIds":
                    this._ThumbAssetIds = propertyNode.InnerText;
                    continue;

                case "flavorAssetIds":
                    this._FlavorAssetIds = propertyNode.InnerText;
                    continue;

                case "assetIds":
                    this._AssetIds = propertyNode.InnerText;
                    continue;

                case "sunrise":
                    this._Sunrise = ParseInt(propertyNode.InnerText);
                    continue;

                case "sunset":
                    this._Sunset = ParseInt(propertyNode.InnerText);
                    continue;

                case "remoteId":
                    this._RemoteId = propertyNode.InnerText;
                    continue;

                case "plays":
                    this._Plays = ParseInt(propertyNode.InnerText);
                    continue;

                case "views":
                    this._Views = ParseInt(propertyNode.InnerText);
                    continue;

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

                case "errorType":
                    this._ErrorType = (BatchJobErrorTypes)ParseEnum(typeof(BatchJobErrorTypes), propertyNode.InnerText);
                    continue;

                case "errorNumber":
                    this._ErrorNumber = ParseInt(propertyNode.InnerText);
                    continue;

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

                case "hasSubmitResultsLog":
                    this._HasSubmitResultsLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

                case "hasSubmitSentDataLog":
                    this._HasSubmitSentDataLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

                case "hasUpdateResultsLog":
                    this._HasUpdateResultsLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

                case "hasUpdateSentDataLog":
                    this._HasUpdateSentDataLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

                case "hasDeleteResultsLog":
                    this._HasDeleteResultsLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

                case "hasDeleteSentDataLog":
                    this._HasDeleteSentDataLog = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;
                }
            }
        }
예제 #6
0
        public EntryDistributionBaseFilter(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 "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;

                case "submittedAtGreaterThanOrEqual":
                    this._SubmittedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "submittedAtLessThanOrEqual":
                    this._SubmittedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "entryIdEqual":
                    this._EntryIdEqual = propertyNode.InnerText;
                    continue;

                case "entryIdIn":
                    this._EntryIdIn = propertyNode.InnerText;
                    continue;

                case "distributionProfileIdEqual":
                    this._DistributionProfileIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "distributionProfileIdIn":
                    this._DistributionProfileIdIn = propertyNode.InnerText;
                    continue;

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

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

                case "dirtyStatusEqual":
                    this._DirtyStatusEqual = (EntryDistributionFlag)ParseEnum(typeof(EntryDistributionFlag), propertyNode.InnerText);
                    continue;

                case "dirtyStatusIn":
                    this._DirtyStatusIn = propertyNode.InnerText;
                    continue;

                case "sunriseGreaterThanOrEqual":
                    this._SunriseGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "sunriseLessThanOrEqual":
                    this._SunriseLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "sunsetGreaterThanOrEqual":
                    this._SunsetGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "sunsetLessThanOrEqual":
                    this._SunsetLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;
                }
            }
        }