UserRepository

@Singleton
class UserRepository @Inject constructor(webservice: DefaultApi, userCache: Cache<Profile>, dataCache: Cache<StoryData>, memberCache: Cache<UserDto>)

Constructors

Link copied to clipboard
@Inject
constructor(webservice: DefaultApi, userCache: Cache<Profile>, dataCache: Cache<StoryData>, memberCache: Cache<UserDto>)

Functions

Link copied to clipboard
Link copied to clipboard
fun getCachedData(): Result<StoryData>
Link copied to clipboard
fun getCachedMember(): Result<UserDto>
Link copied to clipboard
fun getCachedProfile(userId: UUID): Result<Profile>
Link copied to clipboard
suspend fun getFriends(uuid: UUID, userRelation: UserRelation): Result<List<SimpleUserDto>>
Link copied to clipboard
suspend fun getMember(): Result<UserDto>
Link copied to clipboard
suspend fun getProfile(userId: UUID): Result<Profile>
Link copied to clipboard
suspend fun getRatingPage(numberPage: Int): Result<List<SimpleUserDto>>
Link copied to clipboard
suspend fun getUserRequests(): Result<List<SimpleUserDto>>
Link copied to clipboard
Link copied to clipboard
suspend fun registerUser(registerUser: RegisterUserDto): Result<Status>
Link copied to clipboard
suspend fun resetPassword(email: String): Result<Status>