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:
parent
eef83e033b
commit
a103fdab44
14 changed files with 373 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue