mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 14:07:05 +05:30
feat: upgrade kotlinx.serialization
to 1.5.0-RC
This commit is contained in:
parent
dea2d8b468
commit
540ea7ba43
8 changed files with 28 additions and 49 deletions
|
@ -15,16 +15,12 @@ import kotlinx.serialization.Serializable
|
|||
|
||||
@Serializable
|
||||
class Comment(
|
||||
@SerialName("short_id") val shortId: String,
|
||||
val shortId: String,
|
||||
val comment: String,
|
||||
val url: String,
|
||||
val score: Int,
|
||||
@Serializable(with = JavaInstantSerializer::class)
|
||||
@SerialName("created_at")
|
||||
val createdAt: TemporalAccessor,
|
||||
@Serializable(with = JavaInstantSerializer::class)
|
||||
@SerialName("updated_at")
|
||||
val updatedAt: TemporalAccessor,
|
||||
@SerialName("indent_level") val indentLevel: Int,
|
||||
@Serializable(with = JavaInstantSerializer::class) val createdAt: TemporalAccessor,
|
||||
@Serializable(with = JavaInstantSerializer::class) val updatedAt: TemporalAccessor,
|
||||
val indentLevel: Int,
|
||||
@SerialName("commenting_user") val user: User,
|
||||
)
|
||||
|
|
|
@ -13,13 +13,13 @@ import kotlinx.serialization.Serializable
|
|||
|
||||
@Serializable
|
||||
class LobstersPost(
|
||||
@SerialName("short_id") val shortId: String,
|
||||
@SerialName("created_at") val createdAt: String,
|
||||
val shortId: String,
|
||||
val createdAt: String,
|
||||
val title: String,
|
||||
val url: String,
|
||||
val description: String,
|
||||
@SerialName("comment_count") val commentCount: Int,
|
||||
@SerialName("comments_url") val commentsUrl: String,
|
||||
val commentCount: Int,
|
||||
val commentsUrl: String,
|
||||
@SerialName("submitter_user") val submitter: User,
|
||||
val tags: List<String>,
|
||||
)
|
||||
|
|
|
@ -13,13 +13,13 @@ import kotlinx.serialization.Serializable
|
|||
|
||||
@Serializable
|
||||
class LobstersPostDetails(
|
||||
@SerialName("short_id") val shortId: String,
|
||||
@SerialName("created_at") val createdAt: String,
|
||||
val shortId: String,
|
||||
val createdAt: String,
|
||||
val title: String,
|
||||
val url: String,
|
||||
val description: String,
|
||||
@SerialName("comment_count") val commentCount: Int,
|
||||
@SerialName("comments_url") val commentsUrl: String,
|
||||
val commentCount: Int,
|
||||
val commentsUrl: String,
|
||||
@SerialName("submitter_user") val submitter: User,
|
||||
val tags: List<String>,
|
||||
val comments: List<Comment>,
|
||||
|
|
|
@ -16,6 +16,6 @@ class User(
|
|||
val username: String,
|
||||
val about: String,
|
||||
@SerialName("invited_by_user") val invitedBy: String?,
|
||||
@SerialName("avatar_url") val avatarUrl: String,
|
||||
@SerialName("created_at") val createdAt: String,
|
||||
val avatarUrl: String,
|
||||
val createdAt: String,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue