コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
ファイル: RegionReport.cs プロジェクト: guest512/CovidSandbox
 /// <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;
 }