Skip to content

Instantly share code, notes, and snippets.

@sstadelman
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save sstadelman/21b7ebe34379c95bb626 to your computer and use it in GitHub Desktop.

Select an option

Save sstadelman/21b7ebe34379c95bb626 to your computer and use it in GitHub Desktop.
Parse server response
- (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