-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add auto complete in search with countries
- Loading branch information
1 parent
061ed1d
commit 26a9fef
Showing
11 changed files
with
96 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/hb/covid19status/data/ResponseListCountriesAffected.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.hb.covid19status.data | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import java.io.Serializable | ||
|
||
|
||
data class ResponseListCountriesAffected( | ||
|
||
@SerializedName("affected_countries") | ||
val affected_countries: List<String> | ||
) : Serializable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
app/src/main/java/com/hb/covid19status/data_source/remote/RemoteDataSource.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
package com.hb.covid19status.data_source.remote | ||
|
||
import com.hb.covid19status.data.ResponseHistoryCountry | ||
import com.hb.covid19status.data.ResponseListCountries | ||
import com.hb.covid19status.data.ResponseListCountriesAffected | ||
import com.hb.covid19status.data.ResponseListCountriesStats | ||
import com.hb.covid19status.data.ResultData | ||
import com.hb.covid19status.model.WorldStats | ||
|
||
interface RemoteDataSource { | ||
|
||
suspend fun worldWithStats(): ResultData<WorldStats> | ||
suspend fun listCountriesWithStats(): ResultData<ResponseListCountries> | ||
suspend fun listCountriesWithStats(): ResultData<ResponseListCountriesStats> | ||
suspend fun historyByDateByCountryStats(country : String, date : String): ResultData<ResponseHistoryCountry> | ||
suspend fun affectedCountries(): ResultData<ResponseListCountriesAffected> | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters