mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-30 05:35:40 +08:00
gateguru -> OTRestFramework in comments
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// NSDictionary+OTRestRequestSerialization.h
|
// NSDictionary+OTRestRequestSerialization.h
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 7/28/09.
|
// Created by Blake Watters on 7/28/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// NSDictionary+OTRestRequestSerialization.m
|
// NSDictionary+OTRestRequestSerialization.m
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 7/28/09.
|
// Created by Blake Watters on 7/28/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestClient.h
|
// OTRestClient.h
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 7/28/09.
|
// Created by Blake Watters on 7/28/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestClient.m
|
// OTRestClient.m
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 7/28/09.
|
// Created by Blake Watters on 7/28/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -31,19 +31,11 @@
|
|||||||
|
|
||||||
- (void)loadModelFromResponse:(OTRestResponse*)response {
|
- (void)loadModelFromResponse:(OTRestResponse*)response {
|
||||||
id model = [_mapper buildModelFromString:[response payloadString]];
|
id model = [_mapper buildModelFromString:[response payloadString]];
|
||||||
// id model = [_mapper buildModelFromXML:[[response payloadXMLDocument] firstChild]];
|
|
||||||
[_delegate performSelector:self.callback withObject:model];
|
[_delegate performSelector:self.callback withObject:model];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)loadModelsFromResponse:(OTRestResponse*)response {
|
- (void)loadModelsFromResponse:(OTRestResponse*)response {
|
||||||
NSArray* models = [_mapper buildModelsFromString:[response payloadString]];
|
NSArray* models = [_mapper buildModelsFromString:[response payloadString]];
|
||||||
|
|
||||||
// NSMutableArray* models = [[[NSMutableArray alloc] init] autorelease];
|
|
||||||
// NSArray* elements = [[[response payloadXMLDocument] firstChild] childElements];
|
|
||||||
// for (Element* element in elements) {
|
|
||||||
// id model = [_mapper buildModelFromXML:element];
|
|
||||||
// [models addObject:model];
|
|
||||||
// }
|
|
||||||
[_delegate performSelector:self.callback withObject:models];
|
[_delegate performSelector:self.callback withObject:models];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestParams.h
|
// OTRestParams.h
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 8/3/09.
|
// Created by Blake Watters on 8/3/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestParams.m
|
// OTRestParams.m
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 8/3/09.
|
// Created by Blake Watters on 8/3/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestParamsAttachment.h
|
// OTRestParamsAttachment.h
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 8/6/09.
|
// Created by Blake Watters on 8/6/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestAttachment.m
|
// OTRestAttachment.m
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 8/6/09.
|
// Created by Blake Watters on 8/6/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestParamsDataAttachment.h
|
// OTRestParamsDataAttachment.h
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 8/6/09.
|
// Created by Blake Watters on 8/6/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestParamsDataAttachment.m
|
// OTRestParamsDataAttachment.m
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 8/6/09.
|
// Created by Blake Watters on 8/6/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestParamsFileAttachment.h
|
// OTRestParamsFileAttachment.h
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 8/6/09.
|
// Created by Blake Watters on 8/6/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestParamsFileAttachment.m
|
// OTRestParamsFileAttachment.m
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 8/6/09.
|
// Created by Blake Watters on 8/6/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestRequest.h
|
// OTRestRequest.h
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Jeremy Ellison on 7/27/09.
|
// Created by Jeremy Ellison on 7/27/09.
|
||||||
// Copyright 2009 Objective3. All rights reserved.
|
// Copyright 2009 Objective3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestRequest.m
|
// OTRestRequest.m
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Jeremy Ellison on 7/27/09.
|
// Created by Jeremy Ellison on 7/27/09.
|
||||||
// Copyright 2009 Objective3. All rights reserved.
|
// Copyright 2009 Objective3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestRequestSerializable.h
|
// OTRestRequestSerializable.h
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 8/3/09.
|
// Created by Blake Watters on 8/3/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestResponse.h
|
// OTRestResponse.h
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 7/28/09.
|
// Created by Blake Watters on 7/28/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// OTRestResponse.m
|
// OTRestResponse.m
|
||||||
// gateguru
|
// OTRestFramework
|
||||||
//
|
//
|
||||||
// Created by Blake Watters on 7/28/09.
|
// Created by Blake Watters on 7/28/09.
|
||||||
// Copyright 2009 Objective 3. All rights reserved.
|
// Copyright 2009 Objective 3. All rights reserved.
|
||||||
|
|||||||
Reference in New Issue
Block a user