1
0
Fork 0
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:
Konstantin Ivanov 2024-07-06 18:22:50 +02:00 committed by GitHub
parent 986155f10a
commit 098a6e7146
Signed by: github
GPG key ID: B5690EEEBB952194
15 changed files with 609 additions and 153 deletions

View file

@ -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)

View file

@ -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