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

DROID-2831 Tech | Implement Device.Network.State.Set (#1915)

This commit is contained in:
Konstantin Ivanov 2024-12-13 21:42:47 +01:00 committed by Evgenii Kozlov
parent da52fee2b5
commit 31da9e2333
16 changed files with 204 additions and 5 deletions

View file

@ -9,6 +9,7 @@ import com.anytypeio.anytype.core_models.DVFilter
import com.anytypeio.anytype.core_models.DVSort
import com.anytypeio.anytype.core_models.DVViewer
import com.anytypeio.anytype.core_models.DVViewerType
import com.anytypeio.anytype.core_models.DeviceNetworkType
import com.anytypeio.anytype.core_models.Event
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.Key
@ -1096,4 +1097,8 @@ class BlockDataRepository(
override suspend fun objectDateByTimestamp(command: Command.ObjectDateByTimestamp): Struct? {
return remote.objectDateByTimestamp(command)
}
override suspend fun setDeviceNetworkState(type: DeviceNetworkType) {
remote.setDeviceNetworkState(type)
}
}

View file

@ -9,6 +9,7 @@ import com.anytypeio.anytype.core_models.DVFilter
import com.anytypeio.anytype.core_models.DVSort
import com.anytypeio.anytype.core_models.DVViewer
import com.anytypeio.anytype.core_models.DVViewerType
import com.anytypeio.anytype.core_models.DeviceNetworkType
import com.anytypeio.anytype.core_models.Event
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.Key
@ -465,4 +466,6 @@ interface BlockRemote {
suspend fun objectRelationListWithValue(command: Command.RelationListWithValue): List<RelationListWithValueItem>
suspend fun debugAccountSelectTrace(dir: String): String
suspend fun setDeviceNetworkState(type: DeviceNetworkType)
}