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>,
|
2020-09-10 09:59:17 +00:00
|
|
|
val triggerId: TriggerId?
|
2020-09-09 18:04:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
interface PostCreatingCase {
|
|
|
|
suspend fun createPost(
|
|
|
|
postContent: List<Content>,
|
2020-09-10 09:59:17 +00:00
|
|
|
triggerId: TriggerId? = null
|
2020-09-09 18:04:25 +00:00
|
|
|
): RegisteredPost?
|
|
|
|
}
|