Skip to content

nonstop-story/covid19-visualizer-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

covid19-visualizer-net

Network component of the covid-19 visualizer.

This library was built to be a module of the Processing language.

Usage

创建实例

VirusService service = VirusServices.create();

一切网络操作都需要通过 service 进行

获取全球今日情况

Day day = service.today().execute().body();
样例 返回类型 用途
day.getCountry() String 数据来源国家。如果为全球数据,返回值为 null
day.isGlobal() boolean 判断该数据是否是全球数据
day.getDate() Date 数据的日期
day.getConfirmed() int 累计确诊人数
day.getDeaths() int 累计死亡人数
day.getRecorvered() int 累计治愈人数

获取自爆发以来的全球每日情况

List<Day> days = service.allDays().execute().body();

获取单个国家自爆发以来的每日情况

List<Day> days = service.country("国家名").execute().body();

获取所有国家自爆发以来的每日情况

List<Day> days = service.allCountries().execute().body();

Acknowledge

We would like to thank JetBrains for sharing free open-source licences of amazing tools such as Intellij IDEA.

Credit

About

Network component of the covid-19 visualizer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages