PlaguPoster/posts/src/commonMain/kotlin/models/Post.kt

21 lines
414 B
Kotlin
Raw Normal View History

2022-08-18 12:59:05 +00:00
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