0
0
mirror of https://github.com/mediathekview/zapp.git synced 2024-09-20 12:22:15 +02:00

Prefix MediathekApiService

This commit is contained in:
Christine Coenen 2021-10-09 19:31:55 +02:00
parent 0d54642435
commit c62dcad94d
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST
interface MediathekApiService {
interface IMediathekApiService {
@Headers("Content-Type: text/plain")
@POST("query")

View File

@ -13,7 +13,7 @@ import retrofit2.http.Body
class MediathekApi {
private val apiService: MediathekApiService
private val apiService: IMediathekApiService
init {
// workaround to avoid SSLHandshakeException on Android 7 devices
@ -33,7 +33,7 @@ class MediathekApi {
.addConverterFactory(GsonConverterFactory.create())
.build()
apiService = retrofit.create(MediathekApiService::class.java)
apiService = retrofit.create(IMediathekApiService::class.java)
}
suspend fun listShows(@Body queryRequest: QueryRequest): List<MediathekShow> {