mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-11-16 13:03:47 +00:00
21 lines
414 B
Kotlin
21 lines
414 B
Kotlin
package dev.inmo.plaguposter.posts.models
|
|
|
|
import dev.inmo.tgbotapi.types.ChatId
|
|
import kotlinx.serialization.Serializable
|
|
|
|
@Serializable
|
|
sealed interface Post {
|
|
val content: List<PostContentInfo>
|
|
}
|
|
|
|
@Serializable
|
|
data class NewPost(
|
|
override val content: List<PostContentInfo>
|
|
) : Post
|
|
|
|
@Serializable
|
|
data class RegisteredPost(
|
|
val id: PostId,
|
|
override val content: List<PostContentInfo>
|
|
) : Post
|