-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10481cc
commit 5917965
Showing
15 changed files
with
532 additions
and
106 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
9 changes: 3 additions & 6 deletions
9
app/src/main/java/io/chronostech/awasgempabumi/EarthQuakeRepo.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,16 +1,13 @@ | ||
package io.chronostech.awasgempabumi | ||
|
||
import android.app.Application | ||
import androidx.lifecycle.MutableLiveData | ||
import io.chronostech.awasgempabumi.model.EarthQuakeResponse | ||
import io.chronostech.awasgempabumi.model.Gempa | ||
import io.chronostech.awasgempabumi.model.Infogempa | ||
import retrofit2.Call | ||
import retrofit2.Callback | ||
import retrofit2.Response | ||
import javax.inject.Inject | ||
|
||
|
||
class EarthQuakeRepo @Inject constructor(private val retrofitService : API) { | ||
suspend fun getResponse(): Response<EarthQuakeResponse> = retrofitService.getResponse() | ||
|
||
suspend fun getResponseBigMagnitude(): Response<EarthQuakeResponse> = | ||
retrofitService.getResponseBigMagnitude() | ||
} |
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
Oops, something went wrong.