Last active
August 29, 2015 14:06
-
-
Save sstadelman/21b7ebe34379c95bb626 to your computer and use it in GitHub Desktop.
Parse server response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void) requestServerResponse:(id<SODataRequestExecution>)requestExecution | |
| { | |
| id<SODataRequestExecution>requestExecution = note.object; | |
| id<SODataResponse> response = requestExecution.response; | |
| id<SODataResponseSingle> respSingle = (id<SODataResponseSingle>) response; | |
| id<SODataPayload> p = respSingle.payload; | |
| SODataEntitySetDefault *entities = (id<SODataEntitySet>)p; | |
| if ([requestExecution.request.customTag isEqualToString:@"AccountRequest"]) { | |
| [[NSNotificationCenter defaultCenter] postNotificationName:@"AccountRequest" object:entities]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment