KeyPackageRepository

Functions

Link copied to clipboard
abstract suspend 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
abstract suspend fun getAvailableKeyPackageCount(clientId: <Error class: unknown class>): Either<NetworkFailure, <Error class: unknown class>>
Link copied to clipboard
abstract suspend fun replaceKeyPackages(clientId: <Error class: unknown class>, keyPackages: List<ByteArray>, cipherSuite: <Error class: unknown class>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun uploadKeyPackages(clientId: <Error class: unknown class>, keyPackages: List<ByteArray>): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun uploadNewKeyPackages(clientId: <Error class: unknown class>, amount: Int = 100): Either<CoreFailure, Unit>
Link copied to clipboard
abstract suspend fun validKeyPackageCount(clientId: <Error class: unknown class>): Either<CoreFailure, Int>