Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing most clicked search show #26

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
*/
Expand Down Expand Up @@ -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
Expand Down