UserApiClientImpl
class UserApiClientImpl(baseClient: MatrixClientServerApiBaseClient, val contentMappings: EventContentSerializerMappings) : UserApiClient
Constructors
Link copied to clipboard
constructor(baseClient: MatrixClientServerApiBaseClient, contentMappings: EventContentSerializerMappings)
Functions
Link copied to clipboard
open suspend override fun deleteProfileField(userId: UserId, key: ProfileField.Key<*>): Result<Unit>
Link copied to clipboard
open suspend override fun getAccountData(type: String, userId: UserId, key: String): Result<GlobalAccountDataEventContent>
Link copied to clipboard
inline suspend fun <C : GlobalAccountDataEventContent> UserApiClient.getAccountData(userId: UserId, key: String = ""): Result<C>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun <T : ProfileField> getProfileField(userId: UserId, key: ProfileField.Key<T>): Result<T>
Link copied to clipboard
Link copied to clipboard
open suspend override fun searchUsers(searchTerm: String, acceptLanguage: String, limit: Long?): Result<SearchUsers.Response>
Link copied to clipboard
open suspend override fun sendToDevice(events: Map<UserId, Map<String, ToDeviceEventContent>>): Result<Unit>
This splits events into multiple requests, when they have a different type (for example a mix of encrypted and unencrypted events).
Link copied to clipboard
Link copied to clipboard
open suspend override fun setAccountData(content: GlobalAccountDataEventContent, userId: UserId, key: String): Result<Unit>
Link copied to clipboard
Link copied to clipboard