예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportByProductRequest" /> class.
 /// </summary>
 /// <param name="ChannelId">ChannelId.</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="CategoryFilter">CategoryFilter.</param>
 /// <param name="IndicatorFilters">IndicatorFilters.</param>
 /// <param name="AdvancedFilters">AdvancedFilters (required).</param>
 /// <param name="PageSize">PageSize.</param>
 /// <param name="PageNumber">PageNumber.</param>
 /// <param name="ProductColumnsToDisplay">ProductColumnsToDisplay.</param>
 /// <param name="ProductState">ProductState (required).</param>
 /// <param name="ProductFilters">ProductFilters.</param>
 public ReportByProductRequest(BeezUPCommonChannelId ChannelId = default(BeezUPCommonChannelId), DateTime?BeginPeriodUtcDate = default(DateTime?), DateTime?EndPeriodUtcDate = default(DateTime?), ReportCategoryFilter CategoryFilter = default(ReportCategoryFilter), List <ReportIndicatorFilter> IndicatorFilters = default(List <ReportIndicatorFilter>), ReportAdvancedFilters AdvancedFilters = default(ReportAdvancedFilters), PageSize PageSize = default(PageSize), PageNumber PageNumber = default(PageNumber), List <BeezUPCommonCatalogColumnId> ProductColumnsToDisplay = default(List <BeezUPCommonCatalogColumnId>), ProductStateFilter ProductState = default(ProductStateFilter), ProductFilters ProductFilters = default(ProductFilters))
 {
     // to ensure "BeginPeriodUtcDate" is required (not null)
     if (BeginPeriodUtcDate == null)
     {
         throw new InvalidDataException("BeginPeriodUtcDate is a required property for ReportByProductRequest 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 ReportByProductRequest and cannot be null");
     }
     else
     {
         this.EndPeriodUtcDate = EndPeriodUtcDate;
     }
     // to ensure "AdvancedFilters" is required (not null)
     if (AdvancedFilters == null)
     {
         throw new InvalidDataException("AdvancedFilters is a required property for ReportByProductRequest and cannot be null");
     }
     else
     {
         this.AdvancedFilters = AdvancedFilters;
     }
     // to ensure "ProductState" is required (not null)
     if (ProductState == null)
     {
         throw new InvalidDataException("ProductState is a required property for ReportByProductRequest and cannot be null");
     }
     else
     {
         this.ProductState = ProductState;
     }
     this.ChannelId               = ChannelId;
     this.CategoryFilter          = CategoryFilter;
     this.IndicatorFilters        = IndicatorFilters;
     this.PageSize                = PageSize;
     this.PageNumber              = PageNumber;
     this.ProductColumnsToDisplay = ProductColumnsToDisplay;
     this.ProductFilters          = ProductFilters;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportFilterParameters" /> class.
 /// </summary>
 /// <param name="ChannelId">ChannelId.</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="CategoryFilter">CategoryFilter.</param>
 /// <param name="IndicatorFilters">IndicatorFilters.</param>
 /// <param name="AdvancedFilters">AdvancedFilters (required).</param>
 /// <param name="ReportType">ReportType (required).</param>
 /// <param name="ProductState">ProductState.</param>
 /// <param name="ProductFilters">ProductFilters.</param>
 public ReportFilterParameters(BeezUPCommonChannelId ChannelId = default(BeezUPCommonChannelId), DateTime?BeginPeriodUtcDate = default(DateTime?), DateTime?EndPeriodUtcDate = default(DateTime?), ReportCategoryFilter CategoryFilter = default(ReportCategoryFilter), List <ReportIndicatorFilter> IndicatorFilters = default(List <ReportIndicatorFilter>), ReportAdvancedFilters AdvancedFilters = default(ReportAdvancedFilters), ReportType ReportType = default(ReportType), ProductStateFilter ProductState = default(ProductStateFilter), ProductFilters ProductFilters = default(ProductFilters))
 {
     // to ensure "BeginPeriodUtcDate" is required (not null)
     if (BeginPeriodUtcDate == null)
     {
         throw new InvalidDataException("BeginPeriodUtcDate is a required property for ReportFilterParameters 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 ReportFilterParameters and cannot be null");
     }
     else
     {
         this.EndPeriodUtcDate = EndPeriodUtcDate;
     }
     // to ensure "AdvancedFilters" is required (not null)
     if (AdvancedFilters == null)
     {
         throw new InvalidDataException("AdvancedFilters is a required property for ReportFilterParameters and cannot be null");
     }
     else
     {
         this.AdvancedFilters = AdvancedFilters;
     }
     // to ensure "ReportType" is required (not null)
     if (ReportType == null)
     {
         throw new InvalidDataException("ReportType is a required property for ReportFilterParameters and cannot be null");
     }
     else
     {
         this.ReportType = ReportType;
     }
     this.ChannelId        = ChannelId;
     this.CategoryFilter   = CategoryFilter;
     this.IndicatorFilters = IndicatorFilters;
     this.ProductState     = ProductState;
     this.ProductFilters   = ProductFilters;
 }