/// <summary> /// Creates the range for months with the default frequncy rate /// </summary> /// <param name="months">period count</param> /// <param name="frequncy">frequency rate</param> /// <returns>configured range object</returns> public static History Months(HowManyMonths months, Monthly frequncy) { var ft = frequncy switch { Monthly.ByDay => Models.FrequencyType.Daily, Monthly.ByWeek => Models.FrequencyType.Weekly, _ => throw new NotImplementedException(), }; return(Create(Models.PeriodType.Month, (ushort?)months, ft, null)); }
/// <summary> /// Creates the range for months with the default frequncy rate /// </summary> /// <param name="months">period count</param> /// <returns>configured range object</returns> public static History Months(HowManyMonths months) { return(Create(Models.PeriodType.Month, (ushort?)months, null, null)); }