Skip to content

Instantly share code, notes, and snippets.

@stefanmedack
Last active August 21, 2017 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanmedack/b4f07a9b9955fb402fa7c7af5324f38e to your computer and use it in GitHub Desktop.
Save stefanmedack/b4f07a9b9955fb402fa7c7af5324f38e to your computer and use it in GitHub Desktop.
data class Article(
val id: String,
val title: String,
@Json(name = "cell_image") val image: Image,
val author: User,
val video: Video? = null,
val subtitle: String = EMPTY_STRING,
val content: List<Content> = listOf(),
@Json(name = "like_count") val likeCount: Int = 0,
val comments: List<Comment> = listOf(),
@Json(name = "published_at") val publishedAt: Date = Date(0),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment