You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+95-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# consumable-code-covid-19-api By AmirIsBack
2
2
- v1.0.0 - Development
3
-
-Release soon
3
+
-Stable Version
4
4
5
5
# About This Project
6
6
Eliminates the method of retrieving json data using retrofit repeatedly. so this project has a set of functions to retrieve data without the need for fetching data using the retrofit of the API
@@ -19,6 +19,57 @@ https://covid19api.com/
19
19
20
20
# Function Main From This Project
21
21
22
+
// Switch For Using Chuck Interceptor
23
+
fun usingChuckInterceptor(context: Context)
24
+
25
+
// Get Summary Data
26
+
// Return new cases and total cases per country.
27
+
fun getSummaryData(callback: Covid19ResultCallback<ReponseSummary>)
28
+
29
+
// Get All Data
30
+
// This call returns ~8MB of data and currently takes around 5 seconds.
31
+
fun getAllData(callback: Covid19ResultCallback<List<Status>>)
32
+
33
+
// Get All Countries
34
+
// List all countries and their provinces.
35
+
fun getAllCountries(callback: Covid19ResultCallback<List<Country>>)
36
+
37
+
// Get Status By Country
38
+
// {country} must be the country_slug the API call above
39
+
// {status} must be one of: confirmed, deaths, recovered
40
+
fun getStatusByCountry(
41
+
country: String,
42
+
status: String,
43
+
callback: Covid19ResultCallback<List<Status>>
44
+
)
45
+
46
+
// Get Status By Country And Province
47
+
// {country} must be the country_slug the API call above
48
+
// {status} must be one of: confirmed, deaths, recovered
49
+
fun getStatusByCountryProvince(
50
+
country: String,
51
+
status: String,
52
+
callback: Covid19ResultCallback<List<Status>>
53
+
)
54
+
55
+
// Get Status By Country From First Recorded Case
56
+
// {country} must be the country_slug the API call above
57
+
// {status} must be one of: confirmed, deaths, recovered
58
+
fun getFirstRecordedByCountry(
59
+
country: String,
60
+
status: String,
61
+
callback: Covid19ResultCallback<List<Status>>
62
+
)
63
+
64
+
// Get Status By Country And Province From First Recorded Case
65
+
// {country} must be the country_slug the API call above
66
+
// {status} must be one of: confirmed, deaths, recovered
0 commit comments