add small docs for WritePostsAPI

This commit is contained in:
InsanusMokrassar 2019-11-04 13:46:11 +06:00
parent a51645c92c
commit 40bdd44ce8

View File

@ -9,6 +9,10 @@ interface WritePostsAPI {
val postDeletedFlow: Flow<RegisteredPost> val postDeletedFlow: Flow<RegisteredPost>
val postUpdatedFlow: Flow<RegisteredPost> val postUpdatedFlow: Flow<RegisteredPost>
/**
* For creating of post you need to create all its [com.insanusmokrassar.postssystem.core.content.RegisteredContent]
* and (or just) retrieve their [ContentIds] and put it into some [Post] implementation line [SimplePost]
*/
suspend fun createPost(post: Post): RegisteredPost? suspend fun createPost(post: Post): RegisteredPost?
suspend fun deletePost(id: PostId): Boolean suspend fun deletePost(id: PostId): Boolean