add small docs for WritePostsAPI
This commit is contained in:
parent
a51645c92c
commit
40bdd44ce8
@ -9,6 +9,10 @@ interface WritePostsAPI {
|
||||
val postDeletedFlow: 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 deletePost(id: PostId): Boolean
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user