core/business_cases/post_creating/common/src/commonMain/kotlin/dev/inmo/postssystem/business_cases/post_creating/server/PostCreatingCase.kt

19 lines
542 B
Kotlin
Raw Normal View History

2020-11-25 08:08:45 +00:00
package dev.inmo.postssystem.business_cases.post_creating.server
2020-09-09 18:04:25 +00:00
2020-11-25 08:08:45 +00:00
import dev.inmo.postssystem.core.content.Content
import dev.inmo.postssystem.core.post.RegisteredPost
import dev.inmo.postssystem.core.publishing.TriggerId
2020-09-09 18:04:25 +00:00
import kotlinx.serialization.Serializable
@Serializable
data class PostCreatingCreatePostModel(
val postContent: List<Content>,
val triggerId: TriggerId?
2020-09-09 18:04:25 +00:00
)
interface PostCreatingCase {
suspend fun createPost(
postContent: List<Content>,
triggerId: TriggerId? = null
2020-09-09 18:04:25 +00:00
): RegisteredPost?
}