KeyPackageApiV2

internal open class KeyPackageApiV2 : KeyPackageApiV0

Inheritors

Constructors

Link copied to clipboard
internal constructor()

Functions

Link copied to clipboard
open suspend override 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
open suspend override fun getAvailableKeyPackageCount(clientId: String): NetworkResponse<<Error class: unknown class>>

Get the number of available key packages for the self client

Link copied to clipboard
open suspend override 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
open suspend override fun uploadKeyPackages(clientId: String, keyPackages: List<<Error class: unknown class>>): NetworkResponse<Unit>

Upload a batch fresh key packages from the self client