AccountRepositoryImpl

internal class AccountRepositoryImpl(selfApi: SelfApi, userDAO: UserDAO, selfUserId: UserId, availabilityStatusMapper: AvailabilityStatusMapper = MapperProvider.availabilityStatusMapper()) : AccountRepository

Constructors

Link copied to clipboard
constructor(selfApi: SelfApi, userDAO: UserDAO, selfUserId: UserId, availabilityStatusMapper: AvailabilityStatusMapper = MapperProvider.availabilityStatusMapper())

Functions

Link copied to clipboard
open suspend override fun deleteAccount(password: String?): Either<NetworkFailure, Unit>
Link copied to clipboard
open suspend override fun updateLocalSelfUserHandle(handle: String): Either<StorageFailure, Unit>
Link copied to clipboard
open suspend override fun updateSelfAccentColor(accentId: Int): Either<CoreFailure, Unit>
Link copied to clipboard
open suspend override fun updateSelfDisplayName(displayName: String): Either<CoreFailure, Unit>
Link copied to clipboard
open suspend override fun updateSelfEmail(email: String): Either<NetworkFailure, Boolean>

Updates the self user's email address.

Link copied to clipboard
open suspend override fun updateSelfHandle(handle: String): Either<NetworkFailure, Unit>
Link copied to clipboard
open suspend override fun updateSelfUserAvailabilityStatus(status: UserAvailabilityStatus): Either<StorageFailure, Unit>