compose-lobsters/api/src/main/kotlin/dev/msfjarvis/lobsters/model/LobstersPost.kt
Harsh Shandilya fcfcbfbf92
api: initial commit
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-06-04 09:23:52 +05:30

21 lines
615 B
Kotlin

package dev.msfjarvis.lobsters.model
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
class LobstersPost(
@Json(name = "short_id") val shortId: String,
@Json(name = "short_id_url") val shortIdUrl: String,
@Json(name = "created_at") val createdAt: String,
val title: String,
val url: String,
val score: Long,
val flags: Long,
@Json(name = "comment_count") val commentCount: Long,
val description: String,
@Json(name = "comments_url") val commentsUrl: String,
@Json(name = "submitter_user") val submitter: User,
val tags: List<String>,
)