I have a method in my Java Model that is called like this:
httpClient.login(email, password, new JsonResponseHandler() {
@Override
public void onSuccess(int statusCode, JsonObject response) {
}
@Override
public void onFailure(int statusCode, JsonObject response) {
}
});
My question is, how can I use this in Swift after translating my Model to objective-c
client.loginWithNSString(email, withNSString: password, withJsonResponseHandler: JsonResponseHandler!)
Is there a way to inline the JsonResponseHandler or any other way?