2022-09-08 22:59:35 +05:30
|
|
|
package com.github.libretube.api
|
|
|
|
|
2022-12-20 21:54:53 +05:30
|
|
|
import com.github.libretube.api.obj.Instances
|
2022-09-08 22:59:35 +05:30
|
|
|
import com.github.libretube.constants.GITHUB_API_URL
|
2022-09-20 23:23:34 +05:30
|
|
|
import com.github.libretube.obj.update.UpdateInfo
|
2022-09-08 22:59:35 +05:30
|
|
|
import retrofit2.http.GET
|
2022-12-20 21:54:53 +05:30
|
|
|
import retrofit2.http.Url
|
2022-09-08 22:59:35 +05:30
|
|
|
|
|
|
|
interface ExternalApi {
|
|
|
|
// only for fetching servers list
|
2022-12-20 21:54:53 +05:30
|
|
|
@GET
|
|
|
|
suspend fun getInstances(@Url url: String): List<Instances>
|
2022-09-08 22:59:35 +05:30
|
|
|
|
|
|
|
// fetch latest version info
|
|
|
|
@GET(GITHUB_API_URL)
|
|
|
|
suspend fun getUpdateInfo(): UpdateInfo
|
|
|
|
}
|