Skip to content

Commit

Permalink
Remove java.io.Serializable from ImageUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Sep 3, 2024
1 parent e0c3bc2 commit 7248a47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,20 @@
package ch.srg.dataProvider.integrationlayer.data

import ch.srg.dataProvider.integrationlayer.data.serializer.ImageUrlSerializer
import java.io.Serializable
import kotlinx.serialization.Serializable

/**
* Image url
*
* @property rawUrl Internal image url, to retrieve the url use [ImageUrl.decorated].
*/
@Suppress("SerialVersionUIDInSerializableClass")
@kotlinx.serialization.Serializable(with = ImageUrlSerializer::class)
// TODO Why is this class 'java.io.Serializable'?
@Serializable(with = ImageUrlSerializer::class)
data class ImageUrl(
/**
* Only for internal use! Please use a Decorator!
*
* @return the undecorated url
*/
val rawUrl: String
) : Serializable {
) {

/**
* Decorated
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package ch.srg.dataProvider.integrationlayer.request.parameters

import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
import java.text.SimpleDateFormat
import java.util.Calendar
import java.util.Date
Expand All @@ -16,6 +18,8 @@ import java.util.TimeZone
class IlDate(date: Date = Date()) : IlParam(formatDate(date)) {
constructor(calendar: Calendar) : this(calendar.time)

constructor(instant: Instant = Clock.System.now()) : this(Date(instant.toEpochMilliseconds()))

/**
* months = [0-11]
* days = [0-30]
Expand Down

0 comments on commit 7248a47

Please sign in to comment.