-
-
Save albodelu/a6929d9059fa3271585106eb38b78f81 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