1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Editor | Feature | Update set layout use case(#1865)

This commit is contained in:
Konstantin Ivanov 2021-10-22 15:34:31 +03:00 committed by GitHub
parent 418c75b7b3
commit 8a4f0e05eb
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 74 additions and 16 deletions

View file

@ -472,4 +472,7 @@ class BlockDataRepository(
)
override fun deleteObjects(targets: List<Id>) = factory.remote.deleteObjects(targets = targets)
override fun setObjectLayout(ctx: Id, layout: ObjectType.Layout): Payload =
factory.remote.setObjectLayout(ctx, layout)
}

View file

@ -175,4 +175,6 @@ interface BlockDataStore {
fun setObjectListIsArchived(targets: List<Id>, isArchived: Boolean)
fun deleteObjects(targets: List<Id>)
fun setObjectLayout(ctx: Id, layout: ObjectType.Layout) : Payload
}

View file

@ -175,4 +175,6 @@ interface BlockRemote {
fun setObjectListIsArchived(targets: List<Id>, isArchived: Boolean)
fun deleteObjects(targets: List<Id>)
fun setObjectLayout(ctx: Id, layout: ObjectType.Layout) : Payload
}

View file

@ -406,4 +406,7 @@ class BlockRemoteDataStore(private val remote: BlockRemote) : BlockDataStore {
)
override fun deleteObjects(targets: List<Id>) = remote.deleteObjects(targets = targets)
override fun setObjectLayout(ctx: Id, layout: ObjectType.Layout): Payload =
remote.setObjectLayout(ctx, layout)
}