Skip to content
Snippets Groups Projects
Commit 4437edff authored by Kamal Bramwell's avatar Kamal Bramwell
Browse files

Created UserId value class

parent 53bd0eb9
No related branches found
No related tags found
No related merge requests found
package io.elixxir.dapp.bindings.data
import io.elixxir.dapp.user.model.UserId
internal interface UserDiscovery {
fun registerUsername(username: String)
fun registerNickname(nickname: String)
......@@ -9,7 +11,7 @@ internal interface UserDiscovery {
fun removeEmail()
fun removePhone()
fun deleteUser()
fun findUserById(id: ByteArray)
fun findUserById(userId: UserId)
fun usernameSearch(username: String)
fun phoneSearch(phone: String)
fun emailSearch(email: String)
......
package io.elixxir.dapp.bindings.data
import io.elixxir.dapp.user.model.UserId
import bindings.UserDiscovery as CoreUserDiscovery
@JvmInline
......@@ -36,7 +37,7 @@ internal value class UserDiscoveryAdapter(private val ud: CoreUserDiscovery) : U
TODO("Not yet implemented")
}
override fun findUserById(id: ByteArray) {
override fun findUserById(userId: UserId) {
TODO("Not yet implemented")
}
......
package io.elixxir.dapp.user.model
@JvmInline
value class UserId(val value: ByteArray)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment