mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 12:27:52 +08:00
Added support for registering object class mappings as keyPaths in addition to element names. closes #82
This commit is contained in:
@@ -70,22 +70,13 @@
|
||||
NSDate* receivedAt = [NSDate date];
|
||||
if (successful) {
|
||||
_isLoaded = YES;
|
||||
NSDictionary* userInfo = [NSDictionary dictionaryWithObjectsAndKeys:[self HTTPMethod], @"HTTPMethod",
|
||||
[self URL], @"URL",
|
||||
receivedAt, @"receivedAt",
|
||||
nil];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RKResponseReceivedNotification
|
||||
object:_response
|
||||
userInfo:userInfo];
|
||||
userInfo:nil];
|
||||
} else {
|
||||
NSDictionary* userInfo = [NSDictionary dictionaryWithObjectsAndKeys:[self HTTPMethod], @"HTTPMethod",
|
||||
[self URL], @"URL",
|
||||
receivedAt, @"receivedAt",
|
||||
error, @"error",
|
||||
nil];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RKRequestFailedWithErrorNotification
|
||||
object:self
|
||||
userInfo:userInfo];
|
||||
userInfo:nil];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user