removed comments

This commit is contained in:
Tony Tam
2012-09-26 22:12:55 -07:00
parent bee14e82b2
commit ddc94bcb7c
8 changed files with 1 additions and 41 deletions

View File

@@ -15,9 +15,7 @@
- (id) initWithValues: (NSDictionary*)dict
{
/* isContainer: , baseType: NSNumber, complexType: */
__id = [dict objectForKey:@"id"];
/* isContainer: , baseType: NSString, complexType: */
_name = [dict objectForKey:@"name"];
return self;
}

View File

@@ -24,15 +24,10 @@
- (id) initWithValues: (NSDictionary*)dict
{
/* isContainer: , baseType: NSNumber, complexType: */
__id = [dict objectForKey:@"id"];
/* isContainer: , baseType: NSNumber, complexType: */
_petId = [dict objectForKey:@"petId"];
/* isContainer: , baseType: NSString, complexType: */
_status = [dict objectForKey:@"status"];
/* isContainer: , baseType: NSNumber, complexType: */
_quantity = [dict objectForKey:@"quantity"];
/* isContainer: , baseType: NIKDate, complexType: NIKDate */
id shipDate_dict = [dict objectForKey:@"shipDate"];
_shipDate = [[NIKDate alloc]initWithValues:shipDate_dict];
return self;

View File

@@ -27,9 +27,7 @@
- (id) initWithValues: (NSDictionary*)dict
{
/* isContainer: , baseType: NSNumber, complexType: */
__id = [dict objectForKey:@"id"];
/* isContainer: true, baseType: Tag, complexType: NIKTag */
id tags_dict = [dict objectForKey:@"tags"];
if([tags_dict isKindOfClass:[NSArray class]]) {
if([(NSArray*)tags_dict count] > 0) {
@@ -41,14 +39,10 @@
_tags = [[NSArray alloc] initWithArray:objs];
}
}
/* isContainer: , baseType: Category, complexType: NIKCategory */
id category_dict = [dict objectForKey:@"category"];
_category = [[NIKCategory alloc]initWithValues:category_dict];
/* isContainer: , baseType: NSString, complexType: */
_status = [dict objectForKey:@"status"];
/* isContainer: , baseType: NSString, complexType: */
_name = [dict objectForKey:@"name"];
/* isContainer: true, baseType: NSString, complexType: */
_photoUrls = [dict objectForKey:@"photoUrls"];
return self;
}

View File

@@ -45,7 +45,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(petId == nil) {
// error
}
// not a return container
[_api dictionaryWithCompletionBlock: requestUrl
method: @"GET"
queryParams: queryParams
@@ -104,7 +103,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(body == nil) {
// error
}
// not a return container
[_api stringWithCompletionBlock: requestUrl
method: @"POST"
queryParams: queryParams
@@ -164,7 +162,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(body == nil) {
// error
}
// not a return container
[_api stringWithCompletionBlock: requestUrl
method: @"PUT"
queryParams: queryParams
@@ -204,7 +201,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(status == nil) {
// error
}
// it's a returnContainer
[_api dictionaryWithCompletionBlock: requestUrl
method: @"GET"
queryParams: queryParams
@@ -251,7 +247,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(tags == nil) {
// error
}
// it's a returnContainer
[_api dictionaryWithCompletionBlock: requestUrl
method: @"GET"
queryParams: queryParams

View File

@@ -45,7 +45,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(orderId == nil) {
// error
}
// not a return container
[_api dictionaryWithCompletionBlock: requestUrl
method: @"GET"
queryParams: queryParams
@@ -83,7 +82,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(orderId == nil) {
// error
}
// not a return container
[_api stringWithCompletionBlock: requestUrl
method: @"DELETE"
queryParams: queryParams
@@ -143,7 +141,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(body == nil) {
// error
}
// not a return container
[_api stringWithCompletionBlock: requestUrl
method: @"POST"
queryParams: queryParams

View File

@@ -15,9 +15,7 @@
- (id) initWithValues: (NSDictionary*)dict
{
/* isContainer: , baseType: NSNumber, complexType: */
__id = [dict objectForKey:@"id"];
/* isContainer: , baseType: NSString, complexType: */
_name = [dict objectForKey:@"name"];
return self;
}

View File

@@ -33,21 +33,13 @@
- (id) initWithValues: (NSDictionary*)dict
{
/* isContainer: , baseType: NSNumber, complexType: */
__id = [dict objectForKey:@"id"];
/* isContainer: , baseType: NSString, complexType: */
_lastName = [dict objectForKey:@"lastName"];
/* isContainer: , baseType: NSString, complexType: */
_username = [dict objectForKey:@"username"];
/* isContainer: , baseType: NSString, complexType: */
_phone = [dict objectForKey:@"phone"];
/* isContainer: , baseType: NSString, complexType: */
_email = [dict objectForKey:@"email"];
/* isContainer: , baseType: NSNumber, complexType: */
_userStatus = [dict objectForKey:@"userStatus"];
/* isContainer: , baseType: NSString, complexType: */
_firstName = [dict objectForKey:@"firstName"];
/* isContainer: , baseType: NSString, complexType: */
_password = [dict objectForKey:@"password"];
return self;
}

View File

@@ -66,7 +66,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(body == nil) {
// error
}
// not a return container
[_api stringWithCompletionBlock: requestUrl
method: @"POST"
queryParams: queryParams
@@ -126,7 +125,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(body == nil) {
// error
}
// not a return container
[_api stringWithCompletionBlock: requestUrl
method: @"POST"
queryParams: queryParams
@@ -186,7 +184,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(body == nil) {
// error
}
// not a return container
[_api stringWithCompletionBlock: requestUrl
method: @"POST"
queryParams: queryParams
@@ -250,7 +247,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(body == nil) {
// error
}
// not a return container
[_api stringWithCompletionBlock: requestUrl
method: @"PUT"
queryParams: queryParams
@@ -289,7 +285,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(username == nil) {
// error
}
// not a return container
[_api stringWithCompletionBlock: requestUrl
method: @"DELETE"
queryParams: queryParams
@@ -328,7 +323,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(username == nil) {
// error
}
// not a return container
[_api dictionaryWithCompletionBlock: requestUrl
method: @"GET"
queryParams: queryParams
@@ -372,8 +366,6 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
if(password == nil) {
// error
}
// not a return container
// not an array, need to get json string as response
[_api stringWithCompletionBlock: requestUrl
method: @"GET"
queryParams: queryParams
@@ -420,8 +412,7 @@ static NSString * basePath = @"http://petstore.swagger.wordnik.com/api";
NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
id bodyDictionary = nil;
// not a return container
[_api stringWithCompletionBlock: requestUrl
[_api stringWithCompletionBlock: requestUrl
method: @"GET"
queryParams: queryParams
body: bodyDictionary