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 link property to Section.Representation. #38

Merged
merged 4 commits into from
May 9, 2024
Merged
Changes from 1 commit
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
Next Next commit
Add link property to Section.Representation.
Loic-Dumas committed May 8, 2024

Verified

This commit was signed with the committer’s verified signature.
Loic-Dumas Loïc Dumas
commit 3ab7d9f8c4846bbe7a5f442813ca7e9ddbe30c02
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,
)
Original file line number Diff line number Diff line change
@@ -37,6 +37,9 @@ data class Representation(
val imageFocalPoint: FocalPoint?
get() = properties?.imageFocalPoint

val link: Link?
get() = properties?.link

@Serializable
data class Properties(
val title: String? = null,
@@ -45,6 +48,7 @@ data class Representation(
val hasDetailPage: Boolean? = null,
val pickRandomElement: Boolean? = null,
val imageUrl: ImageUrl? = null,
val imageFocalPoint: FocalPoint? = null
val imageFocalPoint: FocalPoint? = null,
val link: Link? = null,
)
}