KeyPackageApi

interface KeyPackageApi

Inheritors

Types

Link copied to clipboard
sealed class Param

Functions

Link copied to clipboard
abstract suspend fun claimKeyPackages(param: KeyPackageApi.Param): NetworkResponse<<Error class: unknown class>>

Claim a key package for each client of a given user.

Link copied to clipboard
abstract suspend fun getAvailableKeyPackageCount(clientId: String): NetworkResponse<<Error class: unknown class>>

Get the number of available key packages for the self client

Link copied to clipboard
abstract suspend fun replaceKeyPackages(clientId: String, keyPackages: List<<Error class: unknown class>>, cipherSuite: Int): NetworkResponse<Unit>

Upload and replace a batch fresh key packages from the self client

Link copied to clipboard
abstract suspend fun uploadKeyPackages(clientId: String, keyPackages: List<<Error class: unknown class>>): NetworkResponse<Unit>

Upload a batch fresh key packages from the self client