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

DROID-2688 Version history | Api (#1428)

This commit is contained in:
Konstantin Ivanov 2024-07-22 17:31:43 +02:00 committed by GitHub
parent eef83e033b
commit a103fdab44
Signed by: github
GPG key ID: B5690EEEBB952194
14 changed files with 373 additions and 0 deletions

View file

@ -24,6 +24,9 @@ import com.anytypeio.anytype.core_models.SearchResult
import com.anytypeio.anytype.core_models.Struct
import com.anytypeio.anytype.core_models.Url
import com.anytypeio.anytype.core_models.WidgetLayout
import com.anytypeio.anytype.core_models.history.DiffVersionResponse
import com.anytypeio.anytype.core_models.history.ShowVersionResponse
import com.anytypeio.anytype.core_models.history.Version
import com.anytypeio.anytype.core_models.membership.EmailVerificationStatus
import com.anytypeio.anytype.core_models.membership.GetPaymentUrlResponse
import com.anytypeio.anytype.core_models.membership.Membership
@ -1031,4 +1034,20 @@ class BlockDataRepository(
override suspend fun processCancel(command: Command.ProcessCancel) {
remote.processCancel(command)
}
override suspend fun getVersions(command: Command.VersionHistory.GetVersions): List<Version> {
return remote.getVersions(command)
}
override suspend fun showVersion(command: Command.VersionHistory.ShowVersion): ShowVersionResponse {
return remote.showVersion(command)
}
override suspend fun setVersion(command: Command.VersionHistory.SetVersion) {
remote.setVersion(command)
}
override suspend fun diffVersions(command: Command.VersionHistory.DiffVersions): DiffVersionResponse {
return remote.diffVersions(command)
}
}

View file

@ -24,6 +24,9 @@ import com.anytypeio.anytype.core_models.SearchResult
import com.anytypeio.anytype.core_models.Struct
import com.anytypeio.anytype.core_models.Url
import com.anytypeio.anytype.core_models.WidgetLayout
import com.anytypeio.anytype.core_models.history.DiffVersionResponse
import com.anytypeio.anytype.core_models.history.ShowVersionResponse
import com.anytypeio.anytype.core_models.history.Version
import com.anytypeio.anytype.core_models.membership.EmailVerificationStatus
import com.anytypeio.anytype.core_models.membership.GetPaymentUrlResponse
import com.anytypeio.anytype.core_models.membership.Membership
@ -436,4 +439,9 @@ interface BlockRemote {
suspend fun membershipGetTiers(command: Command.Membership.GetTiers): List<MembershipTierData>
suspend fun processCancel(command: Command.ProcessCancel)
suspend fun getVersions(command: Command.VersionHistory.GetVersions): List<Version>
suspend fun showVersion(command: Command.VersionHistory.ShowVersion): ShowVersionResponse
suspend fun setVersion(command: Command.VersionHistory.SetVersion)
suspend fun diffVersions(command: Command.VersionHistory.DiffVersions): DiffVersionResponse
}