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

Remove implementation of SRGImageMetadata for Program, as imageUrl is nullable. #35

Merged
merged 1 commit into from
Apr 8, 2024
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 = 8
const val patch = 2
const val patch = 3
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 @@ -21,10 +21,10 @@ data class Program(
val endTime: Date,
override val lead: String? = null,
override val description: String? = null,
override val imageUrl: ImageUrl,
override val imageFocalPoint: FocalPoint? = null,
override val imageTitle: String? = null,
override val imageCopyright: String? = null,
val imageUrl: ImageUrl? = null,
val imageFocalPoint: FocalPoint? = null,
val imageTitle: String? = null,
val imageCopyright: String? = null,
Loic-Dumas marked this conversation as resolved.
Show resolved Hide resolved
val url: String? = null,
val show: Show? = null,
val mediaUrn: String? = null,
Expand Down Expand Up @@ -54,7 +54,7 @@ data class Program(
val rebroadcastDescription: String? = null,
val channelTitle: String? = null,
val channelUrn: String? = null
) : SRGImageMetadata, SRGMetadata {
) : SRGMetadata {

fun isDateInProgramTime(date: Date): Boolean {
return date.after(startTime) && date.before(endTime)
Expand Down
Loading