-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create first levels in "Lists" (#299)
- Loading branch information
Showing
12 changed files
with
396 additions
and
34 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 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
18 changes: 18 additions & 0 deletions
18
.../main/java/ch/srgssr/pillarbox/demo/shared/ui/integrationLayer/data/ContentListSection.kt
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (c) 2023. SRG SSR. All rights reserved. | ||
* License information is available from the LICENSE file. | ||
*/ | ||
package ch.srgssr.pillarbox.demo.shared.ui.integrationLayer.data | ||
|
||
import ch.srgssr.pillarbox.demo.shared.ui.integrationLayer.ContentList | ||
|
||
/** | ||
* Represents a section in the "Lists" tab. | ||
* | ||
* @property title The title of the section. | ||
* @property contentList The list of elements in the section. | ||
*/ | ||
data class ContentListSection( | ||
val title: String, | ||
val contentList: List<ContentList> | ||
) |
25 changes: 25 additions & 0 deletions
25
...main/java/ch/srgssr/pillarbox/demo/shared/ui/integrationLayer/data/ContentListSections.kt
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) 2023. SRG SSR. All rights reserved. | ||
* License information is available from the LICENSE file. | ||
*/ | ||
package ch.srgssr.pillarbox.demo.shared.ui.integrationLayer.data | ||
|
||
import ch.srg.dataProvider.integrationlayer.request.parameters.Bu | ||
import ch.srgssr.pillarbox.demo.shared.ui.integrationLayer.ContentList | ||
|
||
private val bus = listOf(Bu.RTS, Bu.SRF, Bu.RSI, Bu.RTR, Bu.SWI) | ||
|
||
/** | ||
* All the sections available in the "Lists" tab. | ||
*/ | ||
val contentListSections = listOf( | ||
ContentListSection("TV Topics", bus.map { ContentList.TvTopics(it) }), | ||
ContentListSection("TV Shows", bus.map { ContentList.TvShows(it) }), | ||
ContentListSection("TV Latest medias", bus.map { ContentList.TVLatestMedias(it) }), | ||
ContentListSection("TV Livestreams", bus.map { ContentList.TVLivestreams(it) }), | ||
ContentListSection("TV Live center", bus.map { ContentList.TVLiveCenter(it) }), | ||
ContentListSection("TV Live web", bus.map { ContentList.TVLiveWeb(it) }), | ||
ContentListSection("Radio livestream", bus.map { ContentList.RadioLiveStreams(it) }), | ||
ContentListSection("Radio Latest medias", RadioChannel.entries.map { ContentList.RadioLatestMedias(it) }), | ||
ContentListSection("Radio Shows", RadioChannel.entries.map { ContentList.RadioShows(it) }), | ||
) |
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
Oops, something went wrong.