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