Skip to content

Instantly share code, notes, and snippets.

@stefanmedack
Last active August 29, 2017 10:38
Show Gist options
  • Save stefanmedack/442d9860a5a2060341df18233c3f1804 to your computer and use it in GitHub Desktop.
Save stefanmedack/442d9860a5a2060341df18233c3f1804 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