-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
39 changed files
with
847 additions
and
824 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package me.zipi.navitotesla.api | ||
|
||
import me.zipi.navitotesla.model.Github.Release | ||
import retrofit2.Call | ||
import retrofit2.Response | ||
import retrofit2.http.GET | ||
import retrofit2.http.Path | ||
|
||
interface GithubApi { | ||
@GET("/repos/{owner}/{repo}/releases?per_page=10") | ||
fun getReleases( | ||
suspend fun getReleases( | ||
@Path("owner") owner: String, | ||
@Path("repo") repo: String | ||
): Call<List<Release>> | ||
): Response<List<Release>> | ||
} |
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,13 +1,13 @@ | ||
package me.zipi.navitotesla.api | ||
|
||
import me.zipi.navitotesla.model.KakaoMap | ||
import retrofit2.Call | ||
import retrofit2.Response | ||
import retrofit2.http.Headers | ||
import retrofit2.http.POST | ||
import retrofit2.http.Query | ||
|
||
interface KakaoMapApi { | ||
@POST("/v2/local/search/keyword.json") | ||
@Headers("Accept: application/json") | ||
fun search(@Query("query") query: String): Call<KakaoMap.Response<KakaoMap.Place>> | ||
suspend fun search(@Query("query") query: String): Response<KakaoMap.Response<KakaoMap.Place>> | ||
} |
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,13 +1,13 @@ | ||
package me.zipi.navitotesla.api | ||
|
||
import me.zipi.navitotesla.model.NaverMap | ||
import retrofit2.Call | ||
import retrofit2.Response | ||
import retrofit2.http.Headers | ||
import retrofit2.http.POST | ||
import retrofit2.http.Query | ||
|
||
interface NaverMapApi { | ||
@POST("/search2/searchMore.naver") | ||
@Headers("Accept: application/json") | ||
fun search(@Query("query") query: String): Call<NaverMap.Response> | ||
suspend fun search(@Query("query") query: String): Response<NaverMap.Response> | ||
} |
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,13 +1,13 @@ | ||
package me.zipi.navitotesla.api | ||
|
||
import me.zipi.navitotesla.model.TMap.SearchPoiResponse | ||
import retrofit2.Call | ||
import retrofit2.Response | ||
import retrofit2.http.GET | ||
import retrofit2.http.Headers | ||
import retrofit2.http.Query | ||
|
||
interface TMapApi { | ||
@GET("/tmap/pois") | ||
@Headers("Accept: application/json") | ||
fun search(@Query("searchKeyword") query: String): Call<SearchPoiResponse> | ||
suspend fun search(@Query("searchKeyword") query: String): Response<SearchPoiResponse> | ||
} |
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.