Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportByDayRequest" /> class.
 /// </summary>
 /// <param name="ChannelIds">Indicate the channel identifier list.</param>
 /// <param name="ProductId">ProductId.</param>
 /// <param name="CatalogCategoryId">CatalogCategoryId.</param>
 /// <param name="BeginPeriodUtcDate">The begin date period you want to get the report (required).</param>
 /// <param name="EndPeriodUtcDate">The end date period you want to get the report. (required).</param>
 /// <param name="AdvancedFilters">AdvancedFilters.</param>
 public ReportByDayRequest(List <BeezUPCommonChannelId> ChannelIds = default(List <BeezUPCommonChannelId>), BeezUPCommonProductId ProductId = default(BeezUPCommonProductId), BeezUPCommonCatalogCategoryId CatalogCategoryId = default(BeezUPCommonCatalogCategoryId), DateTime?BeginPeriodUtcDate = default(DateTime?), DateTime?EndPeriodUtcDate = default(DateTime?), ReportAdvancedFilters AdvancedFilters = default(ReportAdvancedFilters))
 {
     // to ensure "BeginPeriodUtcDate" is required (not null)
     if (BeginPeriodUtcDate == null)
     {
         throw new InvalidDataException("BeginPeriodUtcDate is a required property for ReportByDayRequest and cannot be null");
     }
     else
     {
         this.BeginPeriodUtcDate = BeginPeriodUtcDate;
     }
     // to ensure "EndPeriodUtcDate" is required (not null)
     if (EndPeriodUtcDate == null)
     {
         throw new InvalidDataException("EndPeriodUtcDate is a required property for ReportByDayRequest and cannot be null");
     }
     else
     {
         this.EndPeriodUtcDate = EndPeriodUtcDate;
     }
     this.ChannelIds        = ChannelIds;
     this.ProductId         = ProductId;
     this.CatalogCategoryId = CatalogCategoryId;
     this.AdvancedFilters   = AdvancedFilters;
 }