KeyPackageDataSource
class KeyPackageDataSource(currentClientIdProvider: CurrentClientIdProvider, keyPackageApi: <Error class: unknown class>, mlsClientProvider: MLSClientProvider, selfUserId: <Error class: unknown class>) : KeyPackageRepository
Constructors
Link copied to clipboard
constructor(currentClientIdProvider: CurrentClientIdProvider, keyPackageApi: <Error class: unknown class>, mlsClientProvider: MLSClientProvider, selfUserId: <Error class: unknown class>)
Functions
Link copied to clipboard
open suspend override fun claimKeyPackages(userIds: List<<Error class: unknown class>>, cipherSuite: <Error class: unknown class>): Either<CoreFailure, KeyPackageClaimResult>
Claims the key packages for the specified user IDs.
Link copied to clipboard
open suspend override fun getAvailableKeyPackageCount(clientId: <Error class: unknown class>): Either<NetworkFailure, <Error class: unknown class>>
Link copied to clipboard
open suspend override fun replaceKeyPackages(clientId: <Error class: unknown class>, keyPackages: List<ByteArray>, cipherSuite: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
open suspend override fun uploadKeyPackages(clientId: <Error class: unknown class>, keyPackages: List<ByteArray>): Either<CoreFailure, Unit>
Link copied to clipboard
open suspend override fun uploadNewKeyPackages(clientId: <Error class: unknown class>, amount: Int): Either<CoreFailure, Unit>
Link copied to clipboard
open suspend override fun validKeyPackageCount(clientId: <Error class: unknown class>): Either<CoreFailure, Int>