Skip to content

Instantly share code, notes, and snippets.

@albodelu
Forked from stefanmedack/Video.kt
Created August 29, 2017 10:38
Show Gist options
  • Save albodelu/a6929d9059fa3271585106eb38b78f81 to your computer and use it in GitHub Desktop.
Save albodelu/a6929d9059fa3271585106eb38b78f81 to your computer and use it in GitHub Desktop.
data class Video(
val id: String,
@Json(name = "video_url") val videoUrl: String,
@Json(name = "preview_image") val previewImage: Image,
@Json(name = "video_title") val videoTitle: String = EMPTY_STRING,
val duration: Int = 0,
@Json(name = "view_count") val viewCount: Int = 0,
val type: VideoType = VideoType.unknown
)
enum class VideoType {
unknown, recipe, article
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment