From 04b39cc86bf616d620ba230ddcd3df3393402fe5 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 22 Sep 2020 22:34:48 +0800 Subject: [PATCH] remove SWGApiResponse.m (not used) (#7478) --- .../SwaggerClient/Model/SWGApiResponse.m | 34 ------------------- .../SwaggerClient/Model/SWGApiResponse.m | 34 ------------------- 2 files changed, 68 deletions(-) delete mode 100644 samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponse.m delete mode 100644 samples/client/petstore/objc/default/SwaggerClient/Model/SWGApiResponse.m diff --git a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponse.m b/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponse.m deleted file mode 100644 index cfa8aa1eb20..00000000000 --- a/samples/client/petstore/objc/core-data/SwaggerClient/Model/SWGApiResponse.m +++ /dev/null @@ -1,34 +0,0 @@ -#import "SWGApiResponse.h" - -@implementation SWGApiResponse - -- (instancetype)init { - self = [super init]; - if (self) { - // initialize property's default value, if any - - } - return self; -} - - -/** - * Maps json key to property name. - * This method is used by `JSONModel`. - */ -+ (JSONKeyMapper *)keyMapper { - return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:@{ @"code": @"code", @"type": @"type", @"message": @"message" }]; -} - -/** - * Indicates whether the property with the given name is optional. - * If `propertyName` is optional, then return `YES`, otherwise return `NO`. - * This method is used by `JSONModel`. - */ -+ (BOOL)propertyIsOptional:(NSString *)propertyName { - - NSArray *optionalProperties = @[@"code", @"type", @"message"]; - return [optionalProperties containsObject:propertyName]; -} - -@end diff --git a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGApiResponse.m b/samples/client/petstore/objc/default/SwaggerClient/Model/SWGApiResponse.m deleted file mode 100644 index cfa8aa1eb20..00000000000 --- a/samples/client/petstore/objc/default/SwaggerClient/Model/SWGApiResponse.m +++ /dev/null @@ -1,34 +0,0 @@ -#import "SWGApiResponse.h" - -@implementation SWGApiResponse - -- (instancetype)init { - self = [super init]; - if (self) { - // initialize property's default value, if any - - } - return self; -} - - -/** - * Maps json key to property name. - * This method is used by `JSONModel`. - */ -+ (JSONKeyMapper *)keyMapper { - return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:@{ @"code": @"code", @"type": @"type", @"message": @"message" }]; -} - -/** - * Indicates whether the property with the given name is optional. - * If `propertyName` is optional, then return `YES`, otherwise return `NO`. - * This method is used by `JSONModel`. - */ -+ (BOOL)propertyIsOptional:(NSString *)propertyName { - - NSArray *optionalProperties = @[@"code", @"type", @"message"]; - return [optionalProperties containsObject:propertyName]; -} - -@end