/// <summary> /// Initializes a new instance of the <see cref="RegionReport"/> class. /// </summary> /// <param name="name">Country name.</param> /// <param name="walker">A <see cref="BasicReportsWalker"/> instance for retrieving the data for the country.</param> /// <param name="structure">A geographical objects structure and relations for the country.</param> public CountryReport(string name, BasicReportsWalker walker, StatsInfoReportWalker structure) : base(walker, name) { RegionReports = structure.Provinces.Select(province => new RegionReport(Name, province.Name, walker)); }
/// <summary> /// Initializes a new instance of the <see cref="BaseCountryReport"/> class. /// </summary> /// <param name="name">Report name.</param> /// <param name="walker">A <see cref="BasicReportsWalker"/> instance for retrieving the data for the geographical object.</param> protected BaseCountryReport(BasicReportsWalker walker, string name) { Walker = walker; Name = name; AvailableDates = new[] { Walker.StartDay, Walker.LastDay }.GetContinuousDateRange(); }
/// <summary> /// Initializes a new instance of the <see cref="RegionReport"/> class. /// </summary>] /// <param name="countryName">Region country name.</param>"/> /// <param name="name">Region/province name.</param> /// <param name="walker">A <see cref="BasicReportsWalker"/> instance for retrieving the data for the region/province.</param> public RegionReport(string countryName, string name, BasicReportsWalker walker) : base(walker, name) { _countryName = countryName; }