From 41268b00640d361ba638acfa4b1ed176f3f88999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaquim=20St=C3=A4hli?= Date: Thu, 26 Oct 2023 15:23:51 +0200 Subject: [PATCH 1/2] Add missing show list endpoint --- .../integrationlayer/request/IlService.kt | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/dataprovider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/IlService.kt b/dataprovider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/IlService.kt index e15afb0..75d1640 100644 --- a/dataprovider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/IlService.kt +++ b/dataprovider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/IlService.kt @@ -150,6 +150,20 @@ interface IlService { @Query("pageSize") pageSize: IlPaging.Size? = null ): MediaListResult + @GET("2.0/{bu}/showList/tv/mostClicked") + suspend fun getTvMostClickedShows( + @Path("bu") bu: Bu, + @Query("pageSize") pageSize: IlPaging.Size? = null + ): ShowListResult + + @GET("2.0/{bu}/showList/tv/byTopic/{topicId}/mostClicked") + suspend fun getTvMostClickedShowsByTopicId( + @Path("bu") bu: Bu, + @Path("topicId") topicId: String, + @Query("onlyActiveShows") onlyActiveShows: Boolean = true, + @Query("pageSize") pageSize: IlPaging.Size? = null + ): ShowListResult + @GET("2.0/{bu}/mediaList/video/latestEpisodes") suspend fun getTvLatestEpisodes( @Path("bu") bu: Bu, @@ -235,6 +249,13 @@ interface IlService { @Query("pageSize") pageSize: IlPaging.Size? = null ): MediaListResult + @GET("2.0/{bu}/showList/radio/mostClicked") + suspend fun getRadioMostClickedShows( + @Path("bu") bu: Bu, + @Query("channelId") channelId: String, + @Query("pageSize") pageSize: IlPaging.Size? = null + ): ShowListResult + /** * @param date A ISO-8601 date (YYYY-MM-DD) */ @@ -353,6 +374,17 @@ interface IlService { @Query("channelId") radioChannelId: String? = null ): ShowListResult + @GET("2.0/{bu}/showList/mostClickedSearchResults") + suspend fun getTop10MostClickedSearchShow( + @Path("bu") bu: Bu + ): ShowListResult + + @GET("2.0/{bu}/showList/{transmission}/mostClickedSearchResults") + suspend fun getMostClickedSearchShow( + @Path("bu") bu: Bu, + @Path("transmission") transmission: IlTransmission, + ): ShowListResult + //endregion tv and radio //region search From 83c0b0e942276b37133f7200eb5533512dfa3e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaquim=20St=C3=A4hli?= Date: Thu, 26 Oct 2023 15:24:51 +0200 Subject: [PATCH 2/2] pull version number --- buildSrc/src/main/kotlin/Config.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/Config.kt b/buildSrc/src/main/kotlin/Config.kt index 75da42e..01ece0c 100644 --- a/buildSrc/src/main/kotlin/Config.kt +++ b/buildSrc/src/main/kotlin/Config.kt @@ -5,7 +5,7 @@ object Config { const val major = 0 const val minor = 6 - const val patch = 1 + const val patch = 2 const val versionName = "$major.$minor.$patch" const val maven_group = "ch.srg.data.provider"