CodeLifter.HealthAPI.Covid19 by Andrew Palmer

<PackageReference Include="CodeLifter.HealthAPI.Covid19" Version="1.0.0" />

 Covid19Api

public class Covid19Api : ICovid19Api
using CodeLifter.HealthAPI.Covid19.Models; using CodeLifter.Http; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Threading.Tasks; namespace CodeLifter.HealthAPI.Covid19 { public class Covid19Api : ICovid19Api { private string BaseURI { get; set; } public IHttpClient Client { get; set; } public Covid19Api() { BaseURI = "https://health-api.com/api/v1/"; Client = new HttpClient(BaseURI, true, true); } public Covid19Api(HttpClient client) { Client = client; } [AsyncStateMachine(typeof(<GetGlobalStatistics>d__10))] [DebuggerStepThrough] public Task<Statistic> GetGlobalStatistics() { <GetGlobalStatistics>d__10 stateMachine = new <GetGlobalStatistics>d__10(); stateMachine.<>4__this = this; stateMachine.<>t__builder = AsyncTaskMethodBuilder<Statistic>.Create(); stateMachine.<>1__state = -1; AsyncTaskMethodBuilder<Statistic> <>t__builder = stateMachine.<>t__builder; <>t__builder.Start(ref stateMachine); return stateMachine.<>t__builder.Task; } [AsyncStateMachine(typeof(<GetAllStates>d__11))] [DebuggerStepThrough] public Task<List<State>> GetAllStates() { <GetAllStates>d__11 stateMachine = new <GetAllStates>d__11(); stateMachine.<>4__this = this; stateMachine.<>t__builder = AsyncTaskMethodBuilder<List<State>>.Create(); stateMachine.<>1__state = -1; AsyncTaskMethodBuilder<List<State>> <>t__builder = stateMachine.<>t__builder; <>t__builder.Start(ref stateMachine); return stateMachine.<>t__builder.Task; } [AsyncStateMachine(typeof(<GetCountry>d__12))] [DebuggerStepThrough] public Task<Country> GetCountry(string countryCode) { <GetCountry>d__12 stateMachine = new <GetCountry>d__12(); stateMachine.<>4__this = this; stateMachine.countryCode = countryCode; stateMachine.<>t__builder = AsyncTaskMethodBuilder<Country>.Create(); stateMachine.<>1__state = -1; AsyncTaskMethodBuilder<Country> <>t__builder = stateMachine.<>t__builder; <>t__builder.Start(ref stateMachine); return stateMachine.<>t__builder.Task; } [AsyncStateMachine(typeof(<GetStatesByCountry>d__13))] [DebuggerStepThrough] public Task<List<State>> GetStatesByCountry(string countryCode) { <GetStatesByCountry>d__13 stateMachine = new <GetStatesByCountry>d__13(); stateMachine.<>4__this = this; stateMachine.countryCode = countryCode; stateMachine.<>t__builder = AsyncTaskMethodBuilder<List<State>>.Create(); stateMachine.<>1__state = -1; AsyncTaskMethodBuilder<List<State>> <>t__builder = stateMachine.<>t__builder; <>t__builder.Start(ref stateMachine); return stateMachine.<>t__builder.Task; } [AsyncStateMachine(typeof(<GetAllCountries>d__14))] [DebuggerStepThrough] public Task<List<Country>> GetAllCountries() { <GetAllCountries>d__14 stateMachine = new <GetAllCountries>d__14(); stateMachine.<>4__this = this; stateMachine.<>t__builder = AsyncTaskMethodBuilder<List<Country>>.Create(); stateMachine.<>1__state = -1; AsyncTaskMethodBuilder<List<Country>> <>t__builder = stateMachine.<>t__builder; <>t__builder.Start(ref stateMachine); return stateMachine.<>t__builder.Task; } } }