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

Updated callback parameter from List<Contact> -> Contact

parent 7c047508
Branches
No related tags found
No related merge requests found
package io.elixxir.xxclient.callbacks package io.elixxir.xxclient.callbacks
import android.util.Log
import bindings.UdLookupCallback import bindings.UdLookupCallback
import io.elixxir.xxclient.utils.* import io.elixxir.xxclient.utils.*
import java.lang.Exception import java.lang.Exception
interface UdLookupResultListener { interface UdLookupResultListener {
fun onResponse(response: Result<List<ContactData>>) fun onResponse(response: Result<ContactData>)
} }
open class UdLookupCallbackAdapter( open class UdLookupCallbackAdapter(
protected val listener: UdLookupResultListener protected val listener: UdLookupResultListener
) : UdLookupCallback { ) : UdLookupCallback {
override fun callback(contacts: ByteArray?, error: Exception?) { override fun callback(contacts: ByteArray?, error: Exception?) {
val contactsResult = parseDataArray( Log.d("UdLookup", "contacts: ${contacts?.decodeToString() ?: "null"}")
val contactsResult = parseData(
contacts, contacts,
error error
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment