Skip to content

a ResponseObject feature ? #822

Open
@NameX44

Description

@NameX44

Hi,

I was wondering about a ResponseObject which could replace :

public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)
public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse)
public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONArray errorResponse)

by

public void onFailure(AAHJsonResponseObject reponseObject)

where the responseObject contains : status code, responseObject/responseArray/responseString, throwable, headers (and we could add another things in the future).

So there will be only one callback for success and one for failure.

What you think about that ? I know that it would break a lot of things (maybe we can keep current way too) but I think we could talk about it anyway.

I'm able to do it or to help.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions