mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-06-13 21:35:23 +00:00
23 lines
611 B
Kotlin
23 lines
611 B
Kotlin
|
package dev.inmo.plaguposter.posts.registrar.state
|
||
|
|
||
|
import dev.inmo.micro_utils.fsm.common.State
|
||
|
import dev.inmo.plaguposter.posts.models.PostContentInfo
|
||
|
import dev.inmo.tgbotapi.types.ChatId
|
||
|
import kotlinx.serialization.Serializable
|
||
|
|
||
|
interface RegistrationState : State {
|
||
|
override val context: ChatId
|
||
|
|
||
|
@Serializable
|
||
|
data class InProcess(
|
||
|
override val context: ChatId,
|
||
|
val messages: List<PostContentInfo>
|
||
|
) : RegistrationState
|
||
|
|
||
|
@Serializable
|
||
|
data class Finish(
|
||
|
override val context: ChatId,
|
||
|
val messages: List<PostContentInfo>
|
||
|
) : RegistrationState
|
||
|
}
|