Open singamcet opened 4 years ago
Hi! I believe this is close to the proper call and response unwrap approach for 4.0.0
client.queryGraph(yourQuery()).enqueue { graphResponse ->
when (graphResponse) {
is GraphCallResult.Failure -> {
//handle error
}
is GraphCallResult.Success -> {
val responseData = graphResponse.response.data
}
}
}
Hi, Currently, i am using sdk : 3.2.3 and my code is : `call.enqueue(new GraphCall.Callback() {
I an updating the version to sdk 4.0.0 and i am getting error like
error: cannot find symbol graphCall.enqueue(new GraphCall.Callback<Storefront.QueryRoot>() { ^ symbol: class Callback location: interface GraphCall
How can i call
graphCall.enqueue()
function to getting results as like my previous code Please let me know, what changes to done Thanks in advance