Skip to content

Commit

Permalink
Put AdHandler and DurationToSecDeserializer to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegRyz committed Sep 4, 2024
1 parent 76b90de commit c93a202
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import kotlin.time.DurationUnit
private val Duration.secToMs: Int
get() = this.toInt(DurationUnit.MILLISECONDS)

class AdHandler(private val controller: ServerSideAdIntegrationController) {
@Suppress("UnstableApiUsage")
internal class AdHandler(private val controller: ServerSideAdIntegrationController) {
private val scheduledAds = WeakHashMap<UplynkAd, Ad>()

fun createAdBreak(adBreak: UplynkAdBreak) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlin.time.Duration
import kotlin.time.Duration.Companion.seconds
import kotlin.time.DurationUnit

object DurationToSecDeserializer : KSerializer<Duration> {
internal object DurationToSecDeserializer : KSerializer<Duration> {

override val descriptor: SerialDescriptor =
PrimitiveSerialDescriptor("DurationSeconds", PrimitiveKind.DOUBLE)
Expand Down

0 comments on commit c93a202

Please sign in to comment.