PreKeyApiV6

internal open class PreKeyApiV6(authenticatedNetworkClient: AuthenticatedNetworkClient) : PreKeyApiV5

Constructors

Link copied to clipboard
internal constructor(authenticatedNetworkClient: AuthenticatedNetworkClient)

Functions

Link copied to clipboard
open suspend override fun getClientAvailablePrekeys(clientId: String): NetworkResponse<List<Int>>

Retrieves the IDs of the prekeys currently available in the backend for the provided clientId.

Link copied to clipboard
open suspend override fun getUsersPreKey(users: Map<String, Map<String, List<String>>>): NetworkResponse<ListPrekeysResponse>
Link copied to clipboard
open suspend override fun uploadNewPrekeys(clientId: String, preKeys: List<<Error class: unknown class>>): NetworkResponse<Unit>

Uploads more prekeys to be associated with the provided clientId, which can be used by other users to start conversations with the client.