package com.aiosman.riderpro.data import com.aiosman.riderpro.data.api.ApiClient import com.aiosman.riderpro.test.TestDatabase data class UserAuth( val id: Int, val token: String? = null ) interface UserService { suspend fun getUserProfile(id: String): AccountProfileEntity suspend fun followUser(id: String) suspend fun unFollowUser(id: String) } class TestUserServiceImpl : UserService { override suspend fun getUserProfile(id: String): AccountProfileEntity { val resp = ApiClient.api.getAccountProfileById(id.toInt()) val body = resp.body() ?: throw ServiceException("Failed to get account") return body.data.toAccountProfileEntity() } override suspend fun followUser(id: String) { val resp = ApiClient.api.followUser(id.toInt()) return } override suspend fun unFollowUser(id: String) { val resp = ApiClient.api.unfollowUser(id.toInt()) return } }