Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to objc api to address issue #2422 #2426

Merged
merged 2 commits into from
Mar 22, 2016

Conversation

Stuart-campbell
Copy link

Added getter for offline state this lets the app check if and ApiClient is going to attempt the network request or just force cache.

Added setter for AFNetworkReachabilityStatus, this is useful for two reason first to set the default before it has been set by the reachability manager.

Also as the ApiClient uses a shared instance of the reachability manager it is possible for another class to setReachabilityStatusChangeBlock stopping the ApiClient getting reachability change callbacks internally. By adding a setter it would be possible to pass the changes along.

Note: on changes to SWGName, these changes must be because the last person to edit the swagger spec did not regenerate the objc code.

Stuart Campbell added 2 commits March 22, 2016 10:56
@wing328
Copy link
Contributor

wing328 commented Mar 22, 2016

@Stuart-campbell thanks for the PR. The change looks good to me and the test cases for ObjC Petstore passed.

wing328 added a commit that referenced this pull request Mar 22, 2016
Updates to objc api to address issue #2422
@wing328 wing328 merged commit 52f9a74 into swagger-api:master Mar 22, 2016
@wing328 wing328 added this to the v2.1.6 milestone Mar 22, 2016
yaelah pushed a commit to yaelah/swagger-codegen that referenced this pull request Apr 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants