Skip to content

Conversation

@mchristen
Copy link

When calling the public API interface the return types of the various methods changes depending on success/failure or invalid parameters.

If the remote API call succeeds then [nil, true] is returned. If the remote API call fails then something like [500, true] is returned(or a different status code), but in all other cases you get the Result object back.

I believe the correct thing to do is always return the results of the API calls in a Result object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant