RegisterClientUseCase
interface RegisterClientUseCase
This use case is responsible for registering the client. The client will be registered on the backend and the local storage.
If fails due to missing or invalid 2FA code, use RequestSecondFactorVerificationCodeUseCase to request a new code and then call this method again with the new code.
See also
Inheritors
Types
Link copied to clipboard
data class RegisterClientParam(val password: String?, val capabilities: List<<Error class: unknown class>>?, val clientType: <Error class: unknown class>? = null, val model: String? = null, val preKeysToSend: Int = DEFAULT_PRE_KEYS_COUNT, val secondFactorVerificationCode: String? = null, val modelPostfix: String? = null)
The required data needed to register a client password capabilities :Hints provided by the client for the backend so it can behave in a backwards-compatible way. ex : legalHoldConsent preKeysToSend : the initial public keys to start a conversation with another client
Functions
Link copied to clipboard
abstract suspend operator fun invoke(registerClientParam: RegisterClientUseCase.RegisterClientParam): RegisterClientResult