Last active
August 29, 2017 10:38
-
-
Save stefanmedack/442d9860a5a2060341df18233c3f1804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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