AssetInfoResponse

@Serializable
data class AssetInfoResponse(val audioOnly: Int, val boundaryDetails: List<BoundaryDetail>? = null, val error: Int, val tvRating: Int, val maxSlice: Int, val thumbPrefix: String, val sliceDur: Double, val movieRating: Int, val owner: String, val meta: Map<String, String>, val rates: List<Int>, val thumbs: List<Thumbnail>, val posterUrl: String, val duration: Double, val defaultPosterUrl: String, val desc: String, val ratingFlags: Int, val externalId: String, val isAd: Int, val asset: String)

Represents the details of an asset retrieved from the AssetInfo request.

This class encapsulates various properties and metadata about an asset, such as its ratings, duration, thumbnail information, and more.

For further details, please refer to the Uplynk Documentation: AssetInfo Documentation

Constructors

Link copied to clipboard
constructor(audioOnly: Int, boundaryDetails: List<BoundaryDetail>? = null, error: Int, tvRating: Int, maxSlice: Int, thumbPrefix: String, sliceDur: Double, movieRating: Int, owner: String, meta: Map<String, String>, rates: List<Int>, thumbs: List<Thumbnail>, posterUrl: String, duration: Double, defaultPosterUrl: String, desc: String, ratingFlags: Int, externalId: String, isAd: Int, asset: String)

Properties

Link copied to clipboard
@SerialName(value = "asset")
val asset: String

The identifier of the asset.

Link copied to clipboard
@SerialName(value = "audio_only")
val audioOnly: Int

Returns whether the asset is audio only.

Link copied to clipboard
@SerialName(value = "boundary_details")
val boundaryDetails: List<BoundaryDetail>? = null

List of objects which contain information for the boundaries for the asset.

Link copied to clipboard
@SerialName(value = "default_poster_url")
val defaultPosterUrl: String

The default poster URL created for the asset.

Link copied to clipboard
@SerialName(value = "desc")
val desc: String

The description of the asset.

Link copied to clipboard
@SerialName(value = "duration")
val duration: Double

The duration of the asset.

Link copied to clipboard
@SerialName(value = "error")
val error: Int

Returns whether an error occurred.

Link copied to clipboard
@SerialName(value = "external_id")
val externalId: String

The identifier of the external source.

Link copied to clipboard
@SerialName(value = "is_ad")
val isAd: Int

Returns whether the asset is an ad.

Link copied to clipboard
@SerialName(value = "max_slice")
val maxSlice: Int

The number of slices available for the asset.

Link copied to clipboard
@SerialName(value = "meta")
val meta: Map<String, String>

The metadata attached to the asset.

Link copied to clipboard
@SerialName(value = "movie_rating")
val movieRating: Int

The movie rating of the asset.

Link copied to clipboard
@SerialName(value = "owner")
val owner: String

The identifier of the owner.

Link copied to clipboard
@SerialName(value = "poster_url")
val posterUrl: String

The poster URL of the asset.

Link copied to clipboard
@SerialName(value = "rates")
val rates: List<Int>

The available bitrates of the asset.

Link copied to clipboard
@SerialName(value = "rating_flags")
val ratingFlags: Int

The ratings for the asset, as bitwise flags.

Link copied to clipboard
@SerialName(value = "slice_dur")
val sliceDur: Double

The average slice duration.

Link copied to clipboard
@SerialName(value = "thumb_prefix")
val thumbPrefix: String

The prefix URL to the thumbnails.

Link copied to clipboard
@SerialName(value = "thumbs")
val thumbs: List<Thumbnail>

List of thumbnail resolutions of the asset.

Link copied to clipboard
@SerialName(value = "tv_rating")
val tvRating: Int

The tv-rating of the asset.