Parse the preview images from the streams response

This commit is contained in:
Bnyro 2022-12-15 19:24:26 +01:00
parent 4c0e64d25a
commit 6fccb2ad16
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,14 @@
package com.github.libretube.api.obj
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
@JsonIgnoreProperties(ignoreUnknown = true)
data class PreviewFrames(
val urls: List<String>? = null,
val frameWidth: Int? = null,
val frameHeight: Int? = null,
val totalCount: Int? = null,
val durationPerFrame: Int? = null,
val framesPerPageX: Int? = null,
val framesPerPageY: Int? = null
)

View File

@ -26,5 +26,6 @@ data class Streams(
val livestream: Boolean? = null, val livestream: Boolean? = null,
val proxyUrl: String? = null, val proxyUrl: String? = null,
val chapters: List<ChapterSegment>? = null, val chapters: List<ChapterSegment>? = null,
val uploaderSubscriberCount: Long? = null val uploaderSubscriberCount: Long? = null,
val previewFrames: List<PreviewFrames>? = null
) )