public static string ToAggregateByString(this StatisticsAggregate aggregate)
        {
            switch (aggregate)
            {
            case StatisticsAggregate.Day:
                return("day");

            case StatisticsAggregate.Week:
                return("week");

            case StatisticsAggregate.Month:
                return("month");
            }

            return(null);
        }
 public IEmailStatisticsListQuery AggregateBy(StatisticsAggregate value)
 {
     StatisticAggregate = value;
     return(this);
 }
 public IWebhookParseStatisticsListQuery AggregateBy(StatisticsAggregate value)
 {
     StatisticAggregate = value;
     return(this);
 }