Add support for comment count in API responses and DB table (#295)

This commit is contained in:
Sasikanth Miriyampalli 2022-02-20 11:32:32 +05:30 committed by GitHub
parent 12dec1ff46
commit 88d57f63dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 0 deletions

View file

@ -10,6 +10,7 @@ class LobstersPost(
val title: String,
val url: String,
val description: String,
@SerialName("comment_count") val commentCount: Int,
@SerialName("comments_url") val commentsUrl: String,
@SerialName("submitter_user") val submitter: User,
val tags: List<String>,

View file

@ -10,6 +10,7 @@ class LobstersPostDetails(
val title: String,
val url: String,
val description: String,
@SerialName("comment_count") val commentCount: Int,
@SerialName("comments_url") val commentsUrl: String,
@SerialName("submitter_user") val submitter: User,
val tags: List<String>,