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

Created UserDiscovery interface

parent 558e6a44
No related branches found
No related tags found
No related merge requests found
package io.elixxir.dapp.bindings.data
interface UserDiscovery {
fun registerUsername(username: String)
fun registerNickname(nickname: String)
fun registerEmail(email: String)
fun registerPhone(phone: String)
fun confirmTwoFactorAuth(tfaId: String, tfaCode: String)
fun removeEmail()
fun removePhone()
fun deleteUser()
fun findUserById(id: ByteArray)
fun usernameSearch(username: String)
fun phoneSearch(phone: String)
fun emailSearch(email: String)
}
\ No newline at end of file
......@@ -3,4 +3,52 @@ package io.elixxir.dapp.bindings.data
import bindings.UserDiscovery as CoreUserDiscovery
@JvmInline
value class UserDiscoveryAdapter(private val ud: CoreUserDiscovery) : UserDiscovery
\ No newline at end of file
internal value class UserDiscoveryAdapter(private val ud: CoreUserDiscovery) : UserDiscovery {
override fun registerUsername(username: String) {
TODO("Not yet implemented")
}
override fun registerNickname(nickname: String) {
TODO("Not yet implemented")
}
override fun registerEmail(email: String) {
TODO("Not yet implemented")
}
override fun registerPhone(phone: String) {
TODO("Not yet implemented")
}
override fun confirmTwoFactorAuth(tfaId: String, tfaCode: String) {
TODO("Not yet implemented")
}
override fun removeEmail() {
TODO("Not yet implemented")
}
override fun removePhone() {
TODO("Not yet implemented")
}
override fun deleteUser() {
TODO("Not yet implemented")
}
override fun findUserById(id: ByteArray) {
TODO("Not yet implemented")
}
override fun usernameSearch(username: String) {
TODO("Not yet implemented")
}
override fun phoneSearch(phone: String) {
TODO("Not yet implemented")
}
override fun emailSearch(email: String) {
TODO("Not yet implemented")
}
}
\ 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