PingResponse

@Serializable
data class PingResponse(val nextTime: Duration, val ads: UplynkAds? = null, val extensions: JsonElement? = null, val error: String? = null)

The response for a ping request See more in documentation

Constructors

Link copied to clipboard
constructor(nextTime: Duration, ads: UplynkAds? = null, extensions: JsonElement? = null, error: String? = null)

Properties

Link copied to clipboard
val ads: UplynkAds? = null

Contains information about upcoming ads.

Link copied to clipboard
val error: String? = null

Error Response Only

Link copied to clipboard
val extensions: JsonElement? = null

VAST Only

Link copied to clipboard
@SerialName(value = "next_time")
@Serializable(with = DurationToSecDeserializer::class)
val nextTime: Duration

Indicates the next playback position, in seconds, at which the player should request this endpoint. The player should not issue additional API requests when this parameter returns -1.0.