diff --git a/samples/client/petstore/csharp/src/main/csharp/io/swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/src/main/csharp/io/swagger/Model/ApiResponse.cs deleted file mode 100644 index 7b23e25cb55..00000000000 --- a/samples/client/petstore/csharp/src/main/csharp/io/swagger/Model/ApiResponse.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace IO.Swagger.Model { - - /// - /// - /// - [DataContract] - public class ApiResponse { - - - [DataMember(Name="code", EmitDefaultValue=false)] - public int? Code { get; set; } - - - - [DataMember(Name="type", EmitDefaultValue=false)] - public string Type { get; set; } - - - - [DataMember(Name="message", EmitDefaultValue=false)] - public string Message { get; set; } - - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class ApiResponse {\n"); - - sb.Append(" Code: ").Append(Code).Append("\n"); - - sb.Append(" Type: ").Append(Type).Append("\n"); - - sb.Append(" Message: ").Append(Message).Append("\n"); - - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - -} - - -} diff --git a/samples/client/petstore/java/src/main/java/io/swagger/client/model/ApiResponse.java b/samples/client/petstore/java/src/main/java/io/swagger/client/model/ApiResponse.java deleted file mode 100644 index 802fa4743f7..00000000000 --- a/samples/client/petstore/java/src/main/java/io/swagger/client/model/ApiResponse.java +++ /dev/null @@ -1,64 +0,0 @@ -package io.swagger.client.model; - - -import io.swagger.annotations.*; -import com.fasterxml.jackson.annotation.JsonProperty; - - -@ApiModel(description = "") -public class ApiResponse { - - private Integer code = null; - private String type = null; - private String message = null; - - - /** - **/ - @ApiModelProperty(value = "") - @JsonProperty("code") - public Integer getCode() { - return code; - } - public void setCode(Integer code) { - this.code = code; - } - - - /** - **/ - @ApiModelProperty(value = "") - @JsonProperty("type") - public String getType() { - return type; - } - public void setType(String type) { - this.type = type; - } - - - /** - **/ - @ApiModelProperty(value = "") - @JsonProperty("message") - public String getMessage() { - return message; - } - public void setMessage(String message) { - this.message = message; - } - - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ApiResponse {\n"); - - sb.append(" code: ").append(code).append("\n"); - sb.append(" type: ").append(type).append("\n"); - sb.append(" message: ").append(message).append("\n"); - sb.append("}\n"); - return sb.toString(); - } -} diff --git a/samples/client/petstore/objc/client/SWGApiResponse.h b/samples/client/petstore/objc/client/SWGApiResponse.h deleted file mode 100644 index 38525ad185d..00000000000 --- a/samples/client/petstore/objc/client/SWGApiResponse.h +++ /dev/null @@ -1,17 +0,0 @@ -#import -#import "SWGObject.h" - - -@protocol SWGApiResponse -@end - -@interface SWGApiResponse : SWGObject - - -@property(nonatomic) NSNumber* code; - -@property(nonatomic) NSString* type; - -@property(nonatomic) NSString* message; - -@end diff --git a/samples/client/petstore/objc/client/SWGApiResponse.m b/samples/client/petstore/objc/client/SWGApiResponse.m deleted file mode 100644 index 08d8f7dae18..00000000000 --- a/samples/client/petstore/objc/client/SWGApiResponse.m +++ /dev/null @@ -1,22 +0,0 @@ -#import "SWGApiResponse.h" - -@implementation SWGApiResponse - -+ (JSONKeyMapper *)keyMapper -{ - return [[JSONKeyMapper alloc] initWithDictionary:@{ @"code": @"code", @"type": @"type", @"message": @"message" }]; -} - -+ (BOOL)propertyIsOptional:(NSString *)propertyName -{ - NSArray *optionalProperties = @[@"code", @"type", @"message"]; - - if ([optionalProperties containsObject:propertyName]) { - return YES; - } - else { - return NO; - } -} - -@end