mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2550 Sharing extension | FileDrop command implementation (#1362)
This commit is contained in:
parent
986155f10a
commit
098a6e7146
15 changed files with 609 additions and 153 deletions
|
@ -265,6 +265,10 @@ class BlockDataRepository(
|
|||
command: Command.UploadFile
|
||||
): ObjectWrapper.File = remote.uploadFile(command)
|
||||
|
||||
override suspend fun fileDrop(command: Command.FileDrop): Payload {
|
||||
return remote.fileDrop(command)
|
||||
}
|
||||
|
||||
override suspend fun downloadFile(
|
||||
command: Command.DownloadFile
|
||||
): String = remote.downloadFile(command)
|
||||
|
|
|
@ -89,6 +89,7 @@ interface BlockRemote {
|
|||
suspend fun copy(command: Command.Copy): Response.Clipboard.Copy
|
||||
|
||||
suspend fun uploadFile(command: Command.UploadFile): ObjectWrapper.File
|
||||
suspend fun fileDrop(command: Command.FileDrop): Payload
|
||||
suspend fun downloadFile(command: Command.DownloadFile): String
|
||||
|
||||
suspend fun setRelationKey(command: Command.SetRelationKey): Payload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue