mirror of
https://github.com/msfjarvis/compose-lobsters.git
synced 2024-06-03 04:18:58 +05:30
21 lines
615 B
Kotlin
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>,
|
|
)
|