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:
parent
418c75b7b3
commit
8a4f0e05eb
14 changed files with 74 additions and 16 deletions
|
@ -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)
|
||||
}
|
|
@ -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
|
||||
}
|
|
@ -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
|
||||
}
|
|
@ -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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue