UserSettingsRepository

interface UserSettingsRepository

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getUserSettings
Link copied to clipboard
abstract suspend fun getUserSettings(sessionUserId: SessionUserId, refresh: Boolean = false): UserSettings
Returns the general settings for the user.
getUserSettingsFlow
Link copied to clipboard
abstract fun getUserSettingsFlow(sessionUserId: SessionUserId, refresh: Boolean = false): Flow<DataResult<UserSettings>>
Get UserSettings, using sessionUserId.
hashCode
Link copied to clipboard
open fun hashCode(): Int
setUsername
Link copied to clipboard
abstract suspend fun setUsername(sessionUserId: SessionUserId, username: String): Boolean
toString
Link copied to clipboard
open fun toString(): String
updateLoginPassword
Link copied to clipboard
abstract suspend fun updateLoginPassword(sessionUserId: SessionUserId, clientEphemeral: String, clientProof: String, srpSession: String, secondFactorCode: String, auth: Auth): UserSettings
Updates user's login password.
updateRecoveryEmail
Link copied to clipboard
abstract suspend fun updateRecoveryEmail(sessionUserId: SessionUserId, email: String, clientEphemeral: String, clientProof: String, srpSession: String, secondFactorCode: String): UserSettings
Updates user's recovery email.
updateUserSettings
Link copied to clipboard
abstract suspend fun updateUserSettings(userSettings: UserSettings)
Update UserSettings, locally.