• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

egbakou/Covid19Tracker.NET: .NET Standard wrapper arrond the api provided by ht ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

egbakou/Covid19Tracker.NET

开源软件地址:

https://github.com/egbakou/Covid19Tracker.NET

开源编程语言:

C# 100.0%

开源软件介绍:

IconCovid19Tracker.NET v2.0.2

All Contributors

This is a .NET wrapper library around the API provided by @NovelCovid https://github.com/NovelCovid/API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak.

It provides up-to-date data about Coronavirus outbreak includes confirmed cases, recovered, deaths, active, today cases, today deaths, tests and more.

CD NuGet

The version 1.0.0 doc is located here.

Setup

Note

Add namespace Covid19Tracker.Services and call Covid19TrackerAPI class to access to all methods.

Usage

  • Gets global stats. Data is updated every 10 minutes.
GlobalData data = await Covid19Tracker.GetGlobalDataAsync();
  • Gets All Continent's Totals
List<ContinentData> data = await Covid19Tracker.GetContinentsDataAsync();
  • Gets a Specific Continent Totals.
ContinentData data = await Covid19Tracker.GetDataByContinentAsync(string contient);

Continent name: "Asia", "North America", "South America", Europe", "Africa", "Australia/Oceania"

  • Gets all Countries Totals
List<CountryData> data = await Covid19Tracker.GetCountriesDataAsync();
  • Get a Specific Country's Totals for Actual
CountryData data = await Covid19Tracker.GetDataByCountryAsync(string country);

Country name example: "Italy"

  • Classes
public class GlobalData
{
    // Gets or sets the Updated.
    public DateTime Updated { get; set; }

    // Gets or sets the Cases.
    public long Cases { get; set; }

    // Gets or sets the TodayCases.
    public long TodayCases { get; set; }

    // Gets or sets the Deaths.
    public long Deaths { get; set; }

    // Gets or sets the TodayDeaths.
    public long TodayDeaths { get; set; }

    // Gets or sets the Recovered.
    public long Recovered { get; set; }

    // Gets or sets the Active.
    public long Active { get; set; }

    // Gets or sets the Critical.
    public long Critical { get; set; }

    // Gets or Sets Population.
    public long Population { get; set; }

    // Gets or sets the Tests.
    public long Tests { get; set; }

    // Gets or sets the AffectedCountries.
    public int AffectedCountries { get; set; }      
}
public class ContientData
{
    // Gets or sets the updated.
    public DateTime Updated { get; set; }

    // Gets or sets the cases.
    public long Cases { get; set; }

    // Gets or sets the todayCases.
    public long TodayCases { get; set; }

    // Gets or sets the deaths.
    public long Deaths { get; set; }

    // Gets or sets the todayDeaths.
    public long DodayDeaths { get; set; }

    // Gets or sets the recovered.
    public long Recovered { get; set; }

    // Gets or sets the active.
    public long Active { get; set; }

    // Gets or sets the critical.
    public long Critical { get; set; }

    // Gets or sets the continent.
    public string ContinentName { get; set; }
       
    // Gets or Sets Population.
    public long Population { get; set; }
    
    // Gets or sets the Tests.
    public long Tests { get; set; }

    // Gets or sets the countries.
    public IList<string> Countries { get; set; }
}
public class CountryData
{
    // Gets or sets the updated.
    public DateTime Updated { get; set; }

    // Gets or sets the cases.
    public long Cases { get; set; }

    // Gets or sets the todayCases.
    public long TodayCases { get; set; }

    // Gets or sets the deaths.
    public long Deaths { get; set; }

    // Gets or sets the todayDeaths.
    public long DodayDeaths { get; set; }

    // Gets or sets the recovered.
    public long Recovered { get; set; }

    // Gets or sets the active.
    public long Active { get; set; }

    // Gets or sets the critical.
    public long Critical { get; set; }
       
    // Gets or Sets Population.
    public long Population { get; set; }

    // Gets or sets Tests.
    public long Tests { get; set; }
    
    // Gets or sets the continent.
    public string Continent { get; set; }
}

Created by: Kodjo Laurent Egbakou

License

The MIT License (MIT) see License file

Contribution

Feel free to create issues and PRs


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap