Files
rider-pro-android-app/app/src/main/java/com/aiosman/riderpro/data/UserService.kt
2024-07-29 00:01:09 +08:00

18 lines
473 B
Kotlin

package com.aiosman.riderpro.data
import com.aiosman.riderpro.test.TestDatabase
interface UserService {
suspend fun getUserProfile(id:String): AccountProfile
}
class TestUserServiceImpl : UserService {
override suspend fun getUserProfile(id: String): AccountProfile {
TestDatabase.accountData.forEach {
if (it.id == id.toInt()) {
return it
}
}
return AccountProfile(0, 0, 0, "", "", "", "")
}
}