PreKeyApi

interface PreKeyApi

Inheritors

Functions

Link copied to clipboard
abstract suspend 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
abstract suspend fun getUsersPreKey(users: Map<String, Map<String, List<String>>>): NetworkResponse<ListPrekeysResponse>
Link copied to clipboard
abstract suspend 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.