29 lines
866 B
Kotlin
29 lines
866 B
Kotlin
/*
|
|
* Copyright © 2021-2024 Harsh Shandilya.
|
|
* Use of this source code is governed by an MIT-style
|
|
* license that can be found in the LICENSE file or at
|
|
* https://opensource.org/licenses/MIT.
|
|
*/
|
|
@file:Suppress("LongParameterList")
|
|
|
|
package dev.msfjarvis.claw.model
|
|
|
|
import dev.drewhamilton.poko.Poko
|
|
import dev.msfjarvis.claw.serialization.JavaInstantSerializer
|
|
import java.time.temporal.TemporalAccessor
|
|
import kotlinx.serialization.SerialName
|
|
import kotlinx.serialization.Serializable
|
|
|
|
@Serializable
|
|
@Poko
|
|
class Comment(
|
|
val shortId: String,
|
|
val comment: String,
|
|
val url: String,
|
|
val score: Int,
|
|
@Serializable(with = JavaInstantSerializer::class) val createdAt: TemporalAccessor,
|
|
@Serializable(with = JavaInstantSerializer::class) val updatedAt: TemporalAccessor,
|
|
val parentComment: String?,
|
|
@SerialName("commenting_user") val user: String,
|
|
)
|