ProfileRepositoryImpl

class ProfileRepositoryImpl(authApi: AuthApi, session: StateFlow<Session?>, scope: CoroutineScope) : ProfileRepository

Constructors

Link copied to clipboard
constructor(authApi: AuthApi, session: StateFlow<Session?>, scope: CoroutineScope)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val profile: StateFlow<Profile?>

Functions

Link copied to clipboard
open suspend override fun refresh(): Result<Unit>

Re-fetches the profile from /me, e.g. on pull-to-refresh.

Link copied to clipboard
open suspend override fun removeAvatar(): Result<Unit>
Link copied to clipboard
open suspend override fun removeBanner(): Result<Unit>
Link copied to clipboard
open suspend override fun uploadAvatar(image: PickedImage, onStage: (UploadStage) -> Unit = {}): Result<Unit>
Link copied to clipboard
open suspend override fun uploadBanner(image: PickedImage, onStage: (UploadStage) -> Unit = {}): Result<Unit>