-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add link property to Section.Representation. (#38)
## Description Add link property to `Section.Representation` ## Changes Made Create object `Link`. Add it to `Section.Representation.Properties` **Section example** ``` { "id": "6fc354ec-eefa-4450-ae63-461770db0391", "isPublished": false, "vendor": "RTS", "sectionType": "MediaSection", "hasPersonalizedContent": false, "representation": { "name": "Swimlane", "properties": { "title": "Highlight Valère Basilica", "description": "Une belle petite description du film", "hasDetailPage": false, "link": { "targetType": "MICRO_PAGE", "target": "48fe9180-5b2b-4d76-8ea6-c3033a92fd09" } } }, "isGlobal": false } ```
- Loading branch information
1 parent
55c6600
commit e6b9c0a
Showing
3 changed files
with
15 additions
and
2 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
9 changes: 9 additions & 0 deletions
9
data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/Link.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,9 @@ | ||
package ch.srg.dataProvider.integrationlayer.data.remote | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Link( | ||
val targetType: String, | ||
val target: String? = null, | ||
) |
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