Remove useless stuff
This commit is contained in:
parent
d82cedd526
commit
e7d53f67b0
14
app/src/main/java/com/ti/mobpo/network/PokeApiService.kt
Normal file
14
app/src/main/java/com/ti/mobpo/network/PokeApiService.kt
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package com.ti.mobpo.network
|
||||||
|
|
||||||
|
import com.ti.mobpo.data.PokemonDetails
|
||||||
|
import com.ti.mobpo.data.PokemonResponse
|
||||||
|
import retrofit2.http.GET
|
||||||
|
import retrofit2.http.Path
|
||||||
|
|
||||||
|
interface PokeApiService {
|
||||||
|
@GET("pokemon/?offset=0&limit=2000")
|
||||||
|
suspend fun getPokemon(): PokemonResponse
|
||||||
|
|
||||||
|
@GET("pokemon/{id}")
|
||||||
|
suspend fun getPokemonDetails(@Path("id") id: Int): PokemonDetails
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user