PlaguPoster/posts/src/commonMain/kotlin/models/Post.kt
2022-08-18 18:59:05 +06:00

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