Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="YandexRussiaDataProvider"/> class.
 /// </summary>
 public YandexRussiaDataProvider()
 {
     VersionFieldsDictionary.Add(RowVersion.YandexRussia, new[]
     {
         FieldId.LastUpdate,
         FieldId.ProvinceState,
         FieldId.Confirmed,
         FieldId.Recovered,
         FieldId.Deaths,
         FieldId.DeathsByDay,
         FieldId.ConfirmedByDay,
         FieldId.RecoveredByDay
     });
 }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MiscDataProvider"/> class.
        /// </summary>
        public MiscDataProvider()
        {
            VersionFieldsDictionary.Add(RowVersion.StatsBase, new[]
            {
                FieldId.UID,
                FieldId.Iso2,
                FieldId.Iso3,
                FieldId.Code3,
                FieldId.FIPS,
                FieldId.Admin2,
                FieldId.ProvinceState,
                FieldId.CountryRegion,
                FieldId.Latitude,
                FieldId.Longitude,
                FieldId.CombinedKey,
                FieldId.Population
            });

            VersionFieldsDictionary.Add(RowVersion.StatsEx, new[]
            {
                FieldId.ContinentName,
                FieldId.ContinentCode,
                FieldId.CountryRegion,
                FieldId.Iso2,
                FieldId.Iso3,
                FieldId.Code3
            });

            VersionFieldsDictionary.Add(RowVersion.State, new[]
            {
                FieldId.Abbreviation,
                FieldId.Name
            });

            VersionFieldsDictionary.Add(RowVersion.Translation, new[]
            {
                FieldId.English,
                FieldId.Russian
            });
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ModelCacheDataProvider"/> class.
        /// </summary>
        public ModelCacheDataProvider()
        {
            VersionFieldsDictionary.Add(RowVersion.ModelCacheData, new List <FieldId>
            {
                FieldId.LastUpdate,
                FieldId.CountryRegion,
                FieldId.ProvinceState,
                FieldId.Admin2,
                FieldId.Confirmed,
                FieldId.Active,
                FieldId.Recovered,
                FieldId.Deaths
            });

            VersionFieldsDictionary.Add(RowVersion.ModelCacheMetaData, new List <FieldId>
            {
                FieldId.CountryRegion,
                FieldId.ProvinceState,
                FieldId.Admin2,
                FieldId.ContinentName,
                FieldId.Population,
                FieldId.CombinedKey
            });
        }
Пример #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JHopkinsDataProvider"/> class.
        /// </summary>
        public JHopkinsDataProvider()
        {
            VersionFieldsDictionary.Add(RowVersion.JHopkinsV1, new[]
            {
                FieldId.ProvinceState,
                FieldId.CountryRegion,
                FieldId.LastUpdate,
                FieldId.Confirmed,
                FieldId.Deaths,
                FieldId.Recovered
            });

            VersionFieldsDictionary.Add(RowVersion.JHopkinsV2, new[]
            {
                FieldId.ProvinceState,
                FieldId.CountryRegion,
                FieldId.LastUpdate,
                FieldId.Confirmed,
                FieldId.Deaths,
                FieldId.Recovered,
                FieldId.Latitude,
                FieldId.Longitude
            });

            VersionFieldsDictionary.Add(RowVersion.JHopkinsV3, new[]
            {
                FieldId.FIPS,
                FieldId.Admin2,
                FieldId.ProvinceState,
                FieldId.CountryRegion,
                FieldId.LastUpdate,
                FieldId.Latitude,
                FieldId.Longitude,
                FieldId.Confirmed,
                FieldId.Deaths,
                FieldId.Recovered,
                FieldId.Active,
                FieldId.CombinedKey
            });

            VersionFieldsDictionary.Add(RowVersion.JHopkinsV4, new[]
            {
                FieldId.FIPS,
                FieldId.Admin2,
                FieldId.ProvinceState,
                FieldId.CountryRegion,
                FieldId.LastUpdate,
                FieldId.Latitude,
                FieldId.Longitude,
                FieldId.Confirmed,
                FieldId.Deaths,
                FieldId.Recovered,
                FieldId.Active,
                FieldId.CombinedKey,
                FieldId.IncidenceRate,
                FieldId.CaseFatalityRatio
            });

            VersionFieldsDictionary.Add(RowVersion.JHopkinsV5, new[]
            {
                FieldId.FIPS,
                FieldId.Admin2,
                FieldId.ProvinceState,
                FieldId.CountryRegion,
                FieldId.LastUpdate,
                FieldId.Latitude,
                FieldId.Longitude,
                FieldId.Confirmed,
                FieldId.Deaths,
                FieldId.Recovered,
                FieldId.Active,
                FieldId.CombinedKey,
                FieldId.IncidenceRate,
                FieldId.CaseFatalityRatio
            });
        }