diff --git a/modules/swagger-codegen/src/main/resources/CsharpDotNet2/ApiClient.mustache b/modules/swagger-codegen/src/main/resources/CsharpDotNet2/ApiClient.mustache index c46667c61f84..5bd93d066a11 100644 --- a/modules/swagger-codegen/src/main/resources/CsharpDotNet2/ApiClient.mustache +++ b/modules/swagger-codegen/src/main/resources/CsharpDotNet2/ApiClient.mustache @@ -283,13 +283,12 @@ namespace {{packageName}}.Client /// /// Dynamically cast the object into target type. - /// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast /// - /// Object to be casted - /// Target type + /// Object to be casted + /// Target type /// Casted object - public static Object ConvertType(Object source, Type dest) { - return Convert.ChangeType(source, dest); + public static Object ConvertType(Object fromObject, Type toObject) { + return Convert.ChangeType(fromObject, toObject); } } diff --git a/modules/swagger-codegen/src/main/resources/aspnetcore/model.mustache b/modules/swagger-codegen/src/main/resources/aspnetcore/model.mustache index 4a876dd1600c..00521d0a5f2e 100644 --- a/modules/swagger-codegen/src/main/resources/aspnetcore/model.mustache +++ b/modules/swagger-codegen/src/main/resources/aspnetcore/model.mustache @@ -105,16 +105,15 @@ namespace {{packageName}}.Models /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - var hash = 41; + var hashCode = 41; // Suitable nullity checks etc, of course :) {{#vars}} if ({{name}} != null) - hash = hash * 59 + {{name}}.GetHashCode(); + hashCode = hashCode * 59 + {{name}}.GetHashCode(); {{/vars}} - return hash; + return hashCode; } } diff --git a/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache b/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache index 6bef6f4ec66a..cb6deb0c1708 100644 --- a/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache +++ b/modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache @@ -447,31 +447,34 @@ namespace {{packageName}}.Client /// /// Dynamically cast the object into target type. - /// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast /// - /// Object to be casted - /// Target type + /// Object to be casted + /// Target type /// Casted object - {{#supportsAsync}}public static dynamic ConvertType(dynamic source, Type dest){{/supportsAsync}}{{^supportsAsync}}public static object ConvertType(T source, Type dest) where T : class{{/supportsAsync}} + {{#supportsAsync}} + public static dynamic ConvertType(dynamic fromObject, Type toObject) + {{/supportsAsync}} + {{^supportsAsync}} + public static object ConvertType(T fromObject, Type toObject) where T : class + {{/supportsAsync}} { - return Convert.ChangeType(source, dest); + return Convert.ChangeType(fromObject, toObject); } /// /// Convert stream to byte array - /// Credit/Ref: http://stackoverflow.com/a/221941/677735 /// - /// Input stream to be converted + /// Input stream to be converted /// Byte array - public static byte[] ReadAsBytes(Stream input) + public static byte[] ReadAsBytes(Stream inputStream) { - byte[] buffer = new byte[16*1024]; + byte[] buf = new byte[16*1024]; using (MemoryStream ms = new MemoryStream()) { - int read; - while ((read = input.Read(buffer, 0, buffer.Length)) > 0) + int count; + while ((count = inputStream.Read(buf, 0, buf.Length)) > 0) { - ms.Write(buffer, 0, read); + ms.Write(buf, 0, count); } return ms.ToArray(); } diff --git a/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache b/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache index a05b84c3ee01..c206b06365a5 100644 --- a/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache +++ b/modules/swagger-codegen/src/main/resources/csharp/modelGeneric.mustache @@ -126,35 +126,33 @@ this.{{name}} = {{name}}; /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as {{classname}}); + return this.Equals(input as {{classname}}); } /// /// Returns true if {{classname}} instances are equal /// - /// Instance of {{classname}} to be compared + /// Instance of {{classname}} to be compared /// Boolean - public bool Equals({{classname}} other) + public bool Equals({{classname}} input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return {{#vars}}{{#isNotContainer}} ( - this.{{name}} == other.{{name}} || - this.{{name}} != null && - this.{{name}}.Equals(other.{{name}}) + this.{{name}} == input.{{name}} || + (this.{{name}} != null && + this.{{name}}.Equals(input.{{name}})) ){{#hasMore}} && {{/hasMore}}{{/isNotContainer}}{{^isNotContainer}} ( - this.{{name}} == other.{{name}} || - this.{{name}} != null && - this.{{name}}.SequenceEqual(other.{{name}}) + this.{{name}} == input.{{name}} || + (this.{{name}} != null && + this.{{name}}.SequenceEqual(input.{{name}})) ){{#hasMore}} && {{/hasMore}}{{/isNotContainer}}{{/vars}}{{^vars}}false{{/vars}}; } @@ -164,16 +162,14 @@ this.{{name}} = {{name}}; /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; {{#vars}} if (this.{{name}} != null) - hash = hash * 59 + this.{{name}}.GetHashCode(); + hashCode = hashCode * 59 + this.{{name}}.GetHashCode(); {{/vars}} - return hash; + return hashCode; } } {{^netStandard}} diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache index 565329fed19d..cc105bcdcddf 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs2/js_jsonformatter.mustache @@ -825,7 +825,7 @@ return /******/ (function(modules) { // webpackBootstrap var sourceMap = obj.sourceMap; if(sourceMap) { - // http://stackoverflow.com/a/26603875 + // https://developer.mozilla.org/en/docs/Web/API/WindowBase64/Base64_encoding_and_decoding css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */"; } @@ -847,13 +847,13 @@ return /******/ (function(modules) { // webpackBootstrap "use strict"; /* * Escapes `"` charachters from string - */ + */ function escapeString(str) { return str.replace('"', '\"'); } /* * Determines if a value is an object - */ + */ function isObject(value) { var type = typeof value; return !!value && (type == 'object'); @@ -861,32 +861,27 @@ return /******/ (function(modules) { // webpackBootstrap exports.isObject = isObject; /* * Gets constructor name of an object. - * From http://stackoverflow.com/a/332429 * - */ + */ function getObjectName(object) { if (object === undefined) { return ''; } - if (object === null) { - return 'Object'; - } - if (typeof object === 'object' && !object.constructor) { + if (object === null || (typeof object === 'object' && !object.constructor)) { return 'Object'; } var funcNameRegex = /function ([^(]*)/; var results = (funcNameRegex).exec((object).constructor.toString()); if (results && results.length > 1) { return results[1]; - } - else { + } else { return ''; } } exports.getObjectName = getObjectName; /* * Gets type of an object. Returns "null" for null objects - */ + */ function getType(object) { if (object === null) { return 'null'; @@ -965,4 +960,4 @@ return /******/ (function(modules) { // webpackBootstrap ; //# sourceMappingURL=json-formatter.js.map - \ No newline at end of file + diff --git a/modules/swagger-codegen/src/main/resources/python/rest.mustache b/modules/swagger-codegen/src/main/resources/python/rest.mustache index b421c80c841a..feec38fac3b8 100644 --- a/modules/swagger-codegen/src/main/resources/python/rest.mustache +++ b/modules/swagger-codegen/src/main/resources/python/rest.mustache @@ -52,8 +52,7 @@ class RESTClientObject(object): # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # maxsize is the number of requests to host that are allowed in parallel - # ca_certs vs cert_file vs key_file - # http://stackoverflow.com/a/23957365/2985775 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # cert_reqs if configuration.verify_ssl: diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.swagger-codegen/VERSION b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.swagger-codegen/VERSION index 7fea99011a6f..f9f7450d1359 100644 --- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.swagger-codegen/VERSION +++ b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.swagger-codegen/VERSION @@ -1 +1 @@ -2.2.3-SNAPSHOT \ No newline at end of file +2.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/IO/Swagger/Client/ApiClient.cs b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/IO/Swagger/Client/ApiClient.cs index b832ff1d0f94..b8cd67fbeaa1 100644 --- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/IO/Swagger/Client/ApiClient.cs +++ b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/IO/Swagger/Client/ApiClient.cs @@ -285,13 +285,12 @@ namespace IO.Swagger.Client /// /// Dynamically cast the object into target type. - /// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast /// - /// Object to be casted - /// Target type + /// Object to be casted + /// Target type /// Casted object - public static Object ConvertType(Object source, Type dest) { - return Convert.ChangeType(source, dest); + public static Object ConvertType(Object fromObject, Type toObject) { + return Convert.ChangeType(fromObject, toObject); } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Client/ApiClient.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Client/ApiClient.cs index 32545398ce45..f4c961cc61a8 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Client/ApiClient.cs @@ -399,31 +399,29 @@ namespace IO.Swagger.Client /// /// Dynamically cast the object into target type. - /// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast /// - /// Object to be casted - /// Target type + /// Object to be casted + /// Target type /// Casted object - public static dynamic ConvertType(dynamic source, Type dest) + public static dynamic ConvertType(dynamic fromObject, Type toObject) { - return Convert.ChangeType(source, dest); + return Convert.ChangeType(fromObject, toObject); } /// /// Convert stream to byte array - /// Credit/Ref: http://stackoverflow.com/a/221941/677735 /// - /// Input stream to be converted + /// Input stream to be converted /// Byte array - public static byte[] ReadAsBytes(Stream input) + public static byte[] ReadAsBytes(Stream inputStream) { - byte[] buffer = new byte[16*1024]; + byte[] buf = new byte[16*1024]; using (MemoryStream ms = new MemoryStream()) { - int read; - while ((read = input.Read(buffer, 0, buffer.Length)) > 0) + int count; + while ((count = inputStream.Read(buf, 0, buf.Length)) > 0) { - ms.Write(buffer, 0, read); + ms.Write(buf, 0, count); } return ms.ToArray(); } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index ffa29fa4540f..f1b63aca5d2b 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AdditionalPropertiesClass.cs @@ -79,35 +79,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as AdditionalPropertiesClass); + return this.Equals(input as AdditionalPropertiesClass); } /// /// Returns true if AdditionalPropertiesClass instances are equal /// - /// Instance of AdditionalPropertiesClass to be compared + /// Instance of AdditionalPropertiesClass to be compared /// Boolean - public bool Equals(AdditionalPropertiesClass other) + public bool Equals(AdditionalPropertiesClass input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.MapProperty == other.MapProperty || - this.MapProperty != null && - this.MapProperty.SequenceEqual(other.MapProperty) + this.MapProperty == input.MapProperty || + (this.MapProperty != null && + this.MapProperty.SequenceEqual(input.MapProperty)) ) && ( - this.MapOfMapProperty == other.MapOfMapProperty || - this.MapOfMapProperty != null && - this.MapOfMapProperty.SequenceEqual(other.MapOfMapProperty) + this.MapOfMapProperty == input.MapOfMapProperty || + (this.MapOfMapProperty != null && + this.MapOfMapProperty.SequenceEqual(input.MapOfMapProperty)) ); } @@ -117,16 +115,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.MapProperty != null) - hash = hash * 59 + this.MapProperty.GetHashCode(); + hashCode = hashCode * 59 + this.MapProperty.GetHashCode(); if (this.MapOfMapProperty != null) - hash = hash * 59 + this.MapOfMapProperty.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs index 39806e8e667a..2bbcf7d81e14 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Animal.cs @@ -100,35 +100,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Animal); + return this.Equals(input as Animal); } /// /// Returns true if Animal instances are equal /// - /// Instance of Animal to be compared + /// Instance of Animal to be compared /// Boolean - public bool Equals(Animal other) + public bool Equals(Animal input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ClassName == other.ClassName || - this.ClassName != null && - this.ClassName.Equals(other.ClassName) + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) ) && ( - this.Color == other.Color || - this.Color != null && - this.Color.Equals(other.Color) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ); } @@ -138,16 +136,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ClassName != null) - hash = hash * 59 + this.ClassName.GetHashCode(); + hashCode = hashCode * 59 + this.ClassName.GetHashCode(); if (this.Color != null) - hash = hash * 59 + this.Color.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Color.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AnimalFarm.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AnimalFarm.cs index 11cad312ebd1..4f21f19b8dbd 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AnimalFarm.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/AnimalFarm.cs @@ -62,23 +62,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as AnimalFarm); + return this.Equals(input as AnimalFarm); } /// /// Returns true if AnimalFarm instances are equal /// - /// Instance of AnimalFarm to be compared + /// Instance of AnimalFarm to be compared /// Boolean - public bool Equals(AnimalFarm other) + public bool Equals(AnimalFarm input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -90,12 +88,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs index 89864c9b59fa..fc654b07f279 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ApiResponse.cs @@ -88,40 +88,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ApiResponse); + return this.Equals(input as ApiResponse); } /// /// Returns true if ApiResponse instances are equal /// - /// Instance of ApiResponse to be compared + /// Instance of ApiResponse to be compared /// Boolean - public bool Equals(ApiResponse other) + public bool Equals(ApiResponse input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Code == other.Code || - this.Code != null && - this.Code.Equals(other.Code) + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) ) && ( - this.Type == other.Type || - this.Type != null && - this.Type.Equals(other.Type) + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) ) && ( - this.Message == other.Message || - this.Message != null && - this.Message.Equals(other.Message) + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) ); } @@ -131,18 +129,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Code != null) - hash = hash * 59 + this.Code.GetHashCode(); + hashCode = hashCode * 59 + this.Code.GetHashCode(); if (this.Type != null) - hash = hash * 59 + this.Type.GetHashCode(); + hashCode = hashCode * 59 + this.Type.GetHashCode(); if (this.Message != null) - hash = hash * 59 + this.Message.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index 17ad1ef14e37..01895993d7a7 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs @@ -70,30 +70,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ArrayOfArrayOfNumberOnly); + return this.Equals(input as ArrayOfArrayOfNumberOnly); } /// /// Returns true if ArrayOfArrayOfNumberOnly instances are equal /// - /// Instance of ArrayOfArrayOfNumberOnly to be compared + /// Instance of ArrayOfArrayOfNumberOnly to be compared /// Boolean - public bool Equals(ArrayOfArrayOfNumberOnly other) + public bool Equals(ArrayOfArrayOfNumberOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ArrayArrayNumber == other.ArrayArrayNumber || - this.ArrayArrayNumber != null && - this.ArrayArrayNumber.SequenceEqual(other.ArrayArrayNumber) + this.ArrayArrayNumber == input.ArrayArrayNumber || + (this.ArrayArrayNumber != null && + this.ArrayArrayNumber.SequenceEqual(input.ArrayArrayNumber)) ); } @@ -103,14 +101,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ArrayArrayNumber != null) - hash = hash * 59 + this.ArrayArrayNumber.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index 1ffa88f28bd6..d0389f21a38a 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayOfNumberOnly.cs @@ -70,30 +70,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ArrayOfNumberOnly); + return this.Equals(input as ArrayOfNumberOnly); } /// /// Returns true if ArrayOfNumberOnly instances are equal /// - /// Instance of ArrayOfNumberOnly to be compared + /// Instance of ArrayOfNumberOnly to be compared /// Boolean - public bool Equals(ArrayOfNumberOnly other) + public bool Equals(ArrayOfNumberOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ArrayNumber == other.ArrayNumber || - this.ArrayNumber != null && - this.ArrayNumber.SequenceEqual(other.ArrayNumber) + this.ArrayNumber == input.ArrayNumber || + (this.ArrayNumber != null && + this.ArrayNumber.SequenceEqual(input.ArrayNumber)) ); } @@ -103,14 +101,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ArrayNumber != null) - hash = hash * 59 + this.ArrayNumber.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs index 6a998cd80668..9f2a062a36fb 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ArrayTest.cs @@ -88,40 +88,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ArrayTest); + return this.Equals(input as ArrayTest); } /// /// Returns true if ArrayTest instances are equal /// - /// Instance of ArrayTest to be compared + /// Instance of ArrayTest to be compared /// Boolean - public bool Equals(ArrayTest other) + public bool Equals(ArrayTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ArrayOfString == other.ArrayOfString || - this.ArrayOfString != null && - this.ArrayOfString.SequenceEqual(other.ArrayOfString) + this.ArrayOfString == input.ArrayOfString || + (this.ArrayOfString != null && + this.ArrayOfString.SequenceEqual(input.ArrayOfString)) ) && ( - this.ArrayArrayOfInteger == other.ArrayArrayOfInteger || - this.ArrayArrayOfInteger != null && - this.ArrayArrayOfInteger.SequenceEqual(other.ArrayArrayOfInteger) + this.ArrayArrayOfInteger == input.ArrayArrayOfInteger || + (this.ArrayArrayOfInteger != null && + this.ArrayArrayOfInteger.SequenceEqual(input.ArrayArrayOfInteger)) ) && ( - this.ArrayArrayOfModel == other.ArrayArrayOfModel || - this.ArrayArrayOfModel != null && - this.ArrayArrayOfModel.SequenceEqual(other.ArrayArrayOfModel) + this.ArrayArrayOfModel == input.ArrayArrayOfModel || + (this.ArrayArrayOfModel != null && + this.ArrayArrayOfModel.SequenceEqual(input.ArrayArrayOfModel)) ); } @@ -131,18 +129,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ArrayOfString != null) - hash = hash * 59 + this.ArrayOfString.GetHashCode(); + hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode(); if (this.ArrayArrayOfInteger != null) - hash = hash * 59 + this.ArrayArrayOfInteger.GetHashCode(); + hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode(); if (this.ArrayArrayOfModel != null) - hash = hash * 59 + this.ArrayArrayOfModel.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs index 49642feda418..b306023afd04 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Capitalization.cs @@ -116,55 +116,53 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Capitalization); + return this.Equals(input as Capitalization); } /// /// Returns true if Capitalization instances are equal /// - /// Instance of Capitalization to be compared + /// Instance of Capitalization to be compared /// Boolean - public bool Equals(Capitalization other) + public bool Equals(Capitalization input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.SmallCamel == other.SmallCamel || - this.SmallCamel != null && - this.SmallCamel.Equals(other.SmallCamel) + this.SmallCamel == input.SmallCamel || + (this.SmallCamel != null && + this.SmallCamel.Equals(input.SmallCamel)) ) && ( - this.CapitalCamel == other.CapitalCamel || - this.CapitalCamel != null && - this.CapitalCamel.Equals(other.CapitalCamel) + this.CapitalCamel == input.CapitalCamel || + (this.CapitalCamel != null && + this.CapitalCamel.Equals(input.CapitalCamel)) ) && ( - this.SmallSnake == other.SmallSnake || - this.SmallSnake != null && - this.SmallSnake.Equals(other.SmallSnake) + this.SmallSnake == input.SmallSnake || + (this.SmallSnake != null && + this.SmallSnake.Equals(input.SmallSnake)) ) && ( - this.CapitalSnake == other.CapitalSnake || - this.CapitalSnake != null && - this.CapitalSnake.Equals(other.CapitalSnake) + this.CapitalSnake == input.CapitalSnake || + (this.CapitalSnake != null && + this.CapitalSnake.Equals(input.CapitalSnake)) ) && ( - this.SCAETHFlowPoints == other.SCAETHFlowPoints || - this.SCAETHFlowPoints != null && - this.SCAETHFlowPoints.Equals(other.SCAETHFlowPoints) + this.SCAETHFlowPoints == input.SCAETHFlowPoints || + (this.SCAETHFlowPoints != null && + this.SCAETHFlowPoints.Equals(input.SCAETHFlowPoints)) ) && ( - this.ATT_NAME == other.ATT_NAME || - this.ATT_NAME != null && - this.ATT_NAME.Equals(other.ATT_NAME) + this.ATT_NAME == input.ATT_NAME || + (this.ATT_NAME != null && + this.ATT_NAME.Equals(input.ATT_NAME)) ); } @@ -174,24 +172,22 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.SmallCamel != null) - hash = hash * 59 + this.SmallCamel.GetHashCode(); + hashCode = hashCode * 59 + this.SmallCamel.GetHashCode(); if (this.CapitalCamel != null) - hash = hash * 59 + this.CapitalCamel.GetHashCode(); + hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode(); if (this.SmallSnake != null) - hash = hash * 59 + this.SmallSnake.GetHashCode(); + hashCode = hashCode * 59 + this.SmallSnake.GetHashCode(); if (this.CapitalSnake != null) - hash = hash * 59 + this.CapitalSnake.GetHashCode(); + hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode(); if (this.SCAETHFlowPoints != null) - hash = hash * 59 + this.SCAETHFlowPoints.GetHashCode(); + hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode(); if (this.ATT_NAME != null) - hash = hash * 59 + this.ATT_NAME.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs index 0b16244241d9..cdc9f2a46f52 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Cat.cs @@ -109,40 +109,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Cat); + return this.Equals(input as Cat); } /// /// Returns true if Cat instances are equal /// - /// Instance of Cat to be compared + /// Instance of Cat to be compared /// Boolean - public bool Equals(Cat other) + public bool Equals(Cat input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ClassName == other.ClassName || - this.ClassName != null && - this.ClassName.Equals(other.ClassName) + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) ) && ( - this.Color == other.Color || - this.Color != null && - this.Color.Equals(other.Color) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) && ( - this.Declawed == other.Declawed || - this.Declawed != null && - this.Declawed.Equals(other.Declawed) + this.Declawed == input.Declawed || + (this.Declawed != null && + this.Declawed.Equals(input.Declawed)) ); } @@ -152,18 +150,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ClassName != null) - hash = hash * 59 + this.ClassName.GetHashCode(); + hashCode = hashCode * 59 + this.ClassName.GetHashCode(); if (this.Color != null) - hash = hash * 59 + this.Color.GetHashCode(); + hashCode = hashCode * 59 + this.Color.GetHashCode(); if (this.Declawed != null) - hash = hash * 59 + this.Declawed.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Declawed.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs index 1e0285a1f128..c2a3462cf995 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Category.cs @@ -79,35 +79,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Category); + return this.Equals(input as Category); } /// /// Returns true if Category instances are equal /// - /// Instance of Category to be compared + /// Instance of Category to be compared /// Boolean - public bool Equals(Category other) + public bool Equals(Category input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ); } @@ -117,16 +115,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs index 4dc91f0222db..4d00dbef97b8 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ClassModel.cs @@ -70,30 +70,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ClassModel); + return this.Equals(input as ClassModel); } /// /// Returns true if ClassModel instances are equal /// - /// Instance of ClassModel to be compared + /// Instance of ClassModel to be compared /// Boolean - public bool Equals(ClassModel other) + public bool Equals(ClassModel input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Class == other._Class || - this._Class != null && - this._Class.Equals(other._Class) + this._Class == input._Class || + (this._Class != null && + this._Class.Equals(input._Class)) ); } @@ -103,14 +101,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Class != null) - hash = hash * 59 + this._Class.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Class.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Dog.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Dog.cs index fc75998a9e40..63196c32d05d 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Dog.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Dog.cs @@ -109,40 +109,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Dog); + return this.Equals(input as Dog); } /// /// Returns true if Dog instances are equal /// - /// Instance of Dog to be compared + /// Instance of Dog to be compared /// Boolean - public bool Equals(Dog other) + public bool Equals(Dog input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ClassName == other.ClassName || - this.ClassName != null && - this.ClassName.Equals(other.ClassName) + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) ) && ( - this.Color == other.Color || - this.Color != null && - this.Color.Equals(other.Color) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) && ( - this.Breed == other.Breed || - this.Breed != null && - this.Breed.Equals(other.Breed) + this.Breed == input.Breed || + (this.Breed != null && + this.Breed.Equals(input.Breed)) ); } @@ -152,18 +150,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ClassName != null) - hash = hash * 59 + this.ClassName.GetHashCode(); + hashCode = hashCode * 59 + this.ClassName.GetHashCode(); if (this.Color != null) - hash = hash * 59 + this.Color.GetHashCode(); + hashCode = hashCode * 59 + this.Color.GetHashCode(); if (this.Breed != null) - hash = hash * 59 + this.Breed.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Breed.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs index c6245dc9f552..451c53fada6c 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumArrays.cs @@ -120,35 +120,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as EnumArrays); + return this.Equals(input as EnumArrays); } /// /// Returns true if EnumArrays instances are equal /// - /// Instance of EnumArrays to be compared + /// Instance of EnumArrays to be compared /// Boolean - public bool Equals(EnumArrays other) + public bool Equals(EnumArrays input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.JustSymbol == other.JustSymbol || - this.JustSymbol != null && - this.JustSymbol.Equals(other.JustSymbol) + this.JustSymbol == input.JustSymbol || + (this.JustSymbol != null && + this.JustSymbol.Equals(input.JustSymbol)) ) && ( - this.ArrayEnum == other.ArrayEnum || - this.ArrayEnum != null && - this.ArrayEnum.SequenceEqual(other.ArrayEnum) + this.ArrayEnum == input.ArrayEnum || + (this.ArrayEnum != null && + this.ArrayEnum.SequenceEqual(input.ArrayEnum)) ); } @@ -158,16 +156,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.JustSymbol != null) - hash = hash * 59 + this.JustSymbol.GetHashCode(); + hashCode = hashCode * 59 + this.JustSymbol.GetHashCode(); if (this.ArrayEnum != null) - hash = hash * 59 + this.ArrayEnum.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs index 0b316333e95a..ebcfe3b0e46d 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/EnumTest.cs @@ -163,45 +163,43 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as EnumTest); + return this.Equals(input as EnumTest); } /// /// Returns true if EnumTest instances are equal /// - /// Instance of EnumTest to be compared + /// Instance of EnumTest to be compared /// Boolean - public bool Equals(EnumTest other) + public bool Equals(EnumTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.EnumString == other.EnumString || - this.EnumString != null && - this.EnumString.Equals(other.EnumString) + this.EnumString == input.EnumString || + (this.EnumString != null && + this.EnumString.Equals(input.EnumString)) ) && ( - this.EnumInteger == other.EnumInteger || - this.EnumInteger != null && - this.EnumInteger.Equals(other.EnumInteger) + this.EnumInteger == input.EnumInteger || + (this.EnumInteger != null && + this.EnumInteger.Equals(input.EnumInteger)) ) && ( - this.EnumNumber == other.EnumNumber || - this.EnumNumber != null && - this.EnumNumber.Equals(other.EnumNumber) + this.EnumNumber == input.EnumNumber || + (this.EnumNumber != null && + this.EnumNumber.Equals(input.EnumNumber)) ) && ( - this.OuterEnum == other.OuterEnum || - this.OuterEnum != null && - this.OuterEnum.Equals(other.OuterEnum) + this.OuterEnum == input.OuterEnum || + (this.OuterEnum != null && + this.OuterEnum.Equals(input.OuterEnum)) ); } @@ -211,20 +209,18 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.EnumString != null) - hash = hash * 59 + this.EnumString.GetHashCode(); + hashCode = hashCode * 59 + this.EnumString.GetHashCode(); if (this.EnumInteger != null) - hash = hash * 59 + this.EnumInteger.GetHashCode(); + hashCode = hashCode * 59 + this.EnumInteger.GetHashCode(); if (this.EnumNumber != null) - hash = hash * 59 + this.EnumNumber.GetHashCode(); + hashCode = hashCode * 59 + this.EnumNumber.GetHashCode(); if (this.OuterEnum != null) - hash = hash * 59 + this.OuterEnum.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.OuterEnum.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs index ef518e8ca4df..f651fbf5d5e6 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs @@ -216,90 +216,88 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as FormatTest); + return this.Equals(input as FormatTest); } /// /// Returns true if FormatTest instances are equal /// - /// Instance of FormatTest to be compared + /// Instance of FormatTest to be compared /// Boolean - public bool Equals(FormatTest other) + public bool Equals(FormatTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Integer == other.Integer || - this.Integer != null && - this.Integer.Equals(other.Integer) + this.Integer == input.Integer || + (this.Integer != null && + this.Integer.Equals(input.Integer)) ) && ( - this.Int32 == other.Int32 || - this.Int32 != null && - this.Int32.Equals(other.Int32) + this.Int32 == input.Int32 || + (this.Int32 != null && + this.Int32.Equals(input.Int32)) ) && ( - this.Int64 == other.Int64 || - this.Int64 != null && - this.Int64.Equals(other.Int64) + this.Int64 == input.Int64 || + (this.Int64 != null && + this.Int64.Equals(input.Int64)) ) && ( - this.Number == other.Number || - this.Number != null && - this.Number.Equals(other.Number) + this.Number == input.Number || + (this.Number != null && + this.Number.Equals(input.Number)) ) && ( - this._Float == other._Float || - this._Float != null && - this._Float.Equals(other._Float) + this._Float == input._Float || + (this._Float != null && + this._Float.Equals(input._Float)) ) && ( - this._Double == other._Double || - this._Double != null && - this._Double.Equals(other._Double) + this._Double == input._Double || + (this._Double != null && + this._Double.Equals(input._Double)) ) && ( - this._String == other._String || - this._String != null && - this._String.Equals(other._String) + this._String == input._String || + (this._String != null && + this._String.Equals(input._String)) ) && ( - this._Byte == other._Byte || - this._Byte != null && - this._Byte.Equals(other._Byte) + this._Byte == input._Byte || + (this._Byte != null && + this._Byte.Equals(input._Byte)) ) && ( - this.Binary == other.Binary || - this.Binary != null && - this.Binary.Equals(other.Binary) + this.Binary == input.Binary || + (this.Binary != null && + this.Binary.Equals(input.Binary)) ) && ( - this.Date == other.Date || - this.Date != null && - this.Date.Equals(other.Date) + this.Date == input.Date || + (this.Date != null && + this.Date.Equals(input.Date)) ) && ( - this.DateTime == other.DateTime || - this.DateTime != null && - this.DateTime.Equals(other.DateTime) + this.DateTime == input.DateTime || + (this.DateTime != null && + this.DateTime.Equals(input.DateTime)) ) && ( - this.Uuid == other.Uuid || - this.Uuid != null && - this.Uuid.Equals(other.Uuid) + this.Uuid == input.Uuid || + (this.Uuid != null && + this.Uuid.Equals(input.Uuid)) ) && ( - this.Password == other.Password || - this.Password != null && - this.Password.Equals(other.Password) + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) ); } @@ -309,38 +307,36 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Integer != null) - hash = hash * 59 + this.Integer.GetHashCode(); + hashCode = hashCode * 59 + this.Integer.GetHashCode(); if (this.Int32 != null) - hash = hash * 59 + this.Int32.GetHashCode(); + hashCode = hashCode * 59 + this.Int32.GetHashCode(); if (this.Int64 != null) - hash = hash * 59 + this.Int64.GetHashCode(); + hashCode = hashCode * 59 + this.Int64.GetHashCode(); if (this.Number != null) - hash = hash * 59 + this.Number.GetHashCode(); + hashCode = hashCode * 59 + this.Number.GetHashCode(); if (this._Float != null) - hash = hash * 59 + this._Float.GetHashCode(); + hashCode = hashCode * 59 + this._Float.GetHashCode(); if (this._Double != null) - hash = hash * 59 + this._Double.GetHashCode(); + hashCode = hashCode * 59 + this._Double.GetHashCode(); if (this._String != null) - hash = hash * 59 + this._String.GetHashCode(); + hashCode = hashCode * 59 + this._String.GetHashCode(); if (this._Byte != null) - hash = hash * 59 + this._Byte.GetHashCode(); + hashCode = hashCode * 59 + this._Byte.GetHashCode(); if (this.Binary != null) - hash = hash * 59 + this.Binary.GetHashCode(); + hashCode = hashCode * 59 + this.Binary.GetHashCode(); if (this.Date != null) - hash = hash * 59 + this.Date.GetHashCode(); + hashCode = hashCode * 59 + this.Date.GetHashCode(); if (this.DateTime != null) - hash = hash * 59 + this.DateTime.GetHashCode(); + hashCode = hashCode * 59 + this.DateTime.GetHashCode(); if (this.Uuid != null) - hash = hash * 59 + this.Uuid.GetHashCode(); + hashCode = hashCode * 59 + this.Uuid.GetHashCode(); if (this.Password != null) - hash = hash * 59 + this.Password.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Password.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/HasOnlyReadOnly.cs index 796e4ab6f018..8c15b451b1fa 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/HasOnlyReadOnly.cs @@ -76,35 +76,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as HasOnlyReadOnly); + return this.Equals(input as HasOnlyReadOnly); } /// /// Returns true if HasOnlyReadOnly instances are equal /// - /// Instance of HasOnlyReadOnly to be compared + /// Instance of HasOnlyReadOnly to be compared /// Boolean - public bool Equals(HasOnlyReadOnly other) + public bool Equals(HasOnlyReadOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Bar == other.Bar || - this.Bar != null && - this.Bar.Equals(other.Bar) + this.Bar == input.Bar || + (this.Bar != null && + this.Bar.Equals(input.Bar)) ) && ( - this.Foo == other.Foo || - this.Foo != null && - this.Foo.Equals(other.Foo) + this.Foo == input.Foo || + (this.Foo != null && + this.Foo.Equals(input.Foo)) ); } @@ -114,16 +112,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Bar != null) - hash = hash * 59 + this.Bar.GetHashCode(); + hashCode = hashCode * 59 + this.Bar.GetHashCode(); if (this.Foo != null) - hash = hash * 59 + this.Foo.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Foo.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs index fb2d466dc90b..52a234d8cd59 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/List.cs @@ -70,30 +70,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as List); + return this.Equals(input as List); } /// /// Returns true if List instances are equal /// - /// Instance of List to be compared + /// Instance of List to be compared /// Boolean - public bool Equals(List other) + public bool Equals(List input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._123List == other._123List || - this._123List != null && - this._123List.Equals(other._123List) + this._123List == input._123List || + (this._123List != null && + this._123List.Equals(input._123List)) ); } @@ -103,14 +101,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._123List != null) - hash = hash * 59 + this._123List.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._123List.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs index 9b70552afeab..e0a68146d83c 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MapTest.cs @@ -100,35 +100,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as MapTest); + return this.Equals(input as MapTest); } /// /// Returns true if MapTest instances are equal /// - /// Instance of MapTest to be compared + /// Instance of MapTest to be compared /// Boolean - public bool Equals(MapTest other) + public bool Equals(MapTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.MapMapOfString == other.MapMapOfString || - this.MapMapOfString != null && - this.MapMapOfString.SequenceEqual(other.MapMapOfString) + this.MapMapOfString == input.MapMapOfString || + (this.MapMapOfString != null && + this.MapMapOfString.SequenceEqual(input.MapMapOfString)) ) && ( - this.MapOfEnumString == other.MapOfEnumString || - this.MapOfEnumString != null && - this.MapOfEnumString.SequenceEqual(other.MapOfEnumString) + this.MapOfEnumString == input.MapOfEnumString || + (this.MapOfEnumString != null && + this.MapOfEnumString.SequenceEqual(input.MapOfEnumString)) ); } @@ -138,16 +136,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.MapMapOfString != null) - hash = hash * 59 + this.MapMapOfString.GetHashCode(); + hashCode = hashCode * 59 + this.MapMapOfString.GetHashCode(); if (this.MapOfEnumString != null) - hash = hash * 59 + this.MapOfEnumString.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.MapOfEnumString.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index ecad9c0af46d..8f17c8dd977a 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -88,40 +88,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as MixedPropertiesAndAdditionalPropertiesClass); + return this.Equals(input as MixedPropertiesAndAdditionalPropertiesClass); } /// /// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal /// - /// Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared + /// Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared /// Boolean - public bool Equals(MixedPropertiesAndAdditionalPropertiesClass other) + public bool Equals(MixedPropertiesAndAdditionalPropertiesClass input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Uuid == other.Uuid || - this.Uuid != null && - this.Uuid.Equals(other.Uuid) + this.Uuid == input.Uuid || + (this.Uuid != null && + this.Uuid.Equals(input.Uuid)) ) && ( - this.DateTime == other.DateTime || - this.DateTime != null && - this.DateTime.Equals(other.DateTime) + this.DateTime == input.DateTime || + (this.DateTime != null && + this.DateTime.Equals(input.DateTime)) ) && ( - this.Map == other.Map || - this.Map != null && - this.Map.SequenceEqual(other.Map) + this.Map == input.Map || + (this.Map != null && + this.Map.SequenceEqual(input.Map)) ); } @@ -131,18 +129,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Uuid != null) - hash = hash * 59 + this.Uuid.GetHashCode(); + hashCode = hashCode * 59 + this.Uuid.GetHashCode(); if (this.DateTime != null) - hash = hash * 59 + this.DateTime.GetHashCode(); + hashCode = hashCode * 59 + this.DateTime.GetHashCode(); if (this.Map != null) - hash = hash * 59 + this.Map.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Map.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs index bf731fc98c7b..3d11d1188ebf 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Model200Response.cs @@ -79,35 +79,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Model200Response); + return this.Equals(input as Model200Response); } /// /// Returns true if Model200Response instances are equal /// - /// Instance of Model200Response to be compared + /// Instance of Model200Response to be compared /// Boolean - public bool Equals(Model200Response other) + public bool Equals(Model200Response input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this._Class == other._Class || - this._Class != null && - this._Class.Equals(other._Class) + this._Class == input._Class || + (this._Class != null && + this._Class.Equals(input._Class)) ); } @@ -117,16 +115,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); + hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this._Class != null) - hash = hash * 59 + this._Class.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Class.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs index 51cbba9d3e7b..5184c5c33d21 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelClient.cs @@ -70,30 +70,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ModelClient); + return this.Equals(input as ModelClient); } /// /// Returns true if ModelClient instances are equal /// - /// Instance of ModelClient to be compared + /// Instance of ModelClient to be compared /// Boolean - public bool Equals(ModelClient other) + public bool Equals(ModelClient input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Client == other._Client || - this._Client != null && - this._Client.Equals(other._Client) + this._Client == input._Client || + (this._Client != null && + this._Client.Equals(input._Client)) ); } @@ -103,14 +101,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Client != null) - hash = hash * 59 + this._Client.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Client.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs index 41a00b3e83e9..9d885bdff8a5 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ModelReturn.cs @@ -70,30 +70,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ModelReturn); + return this.Equals(input as ModelReturn); } /// /// Returns true if ModelReturn instances are equal /// - /// Instance of ModelReturn to be compared + /// Instance of ModelReturn to be compared /// Boolean - public bool Equals(ModelReturn other) + public bool Equals(ModelReturn input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Return == other._Return || - this._Return != null && - this._Return.Equals(other._Return) + this._Return == input._Return || + (this._Return != null && + this._Return.Equals(input._Return)) ); } @@ -103,14 +101,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Return != null) - hash = hash * 59 + this._Return.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Return.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Name.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Name.cs index f5cd048cc42a..d4c149c0fad7 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Name.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Name.cs @@ -106,45 +106,43 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Name); + return this.Equals(input as Name); } /// /// Returns true if Name instances are equal /// - /// Instance of Name to be compared + /// Instance of Name to be compared /// Boolean - public bool Equals(Name other) + public bool Equals(Name input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Name == other._Name || - this._Name != null && - this._Name.Equals(other._Name) + this._Name == input._Name || + (this._Name != null && + this._Name.Equals(input._Name)) ) && ( - this.SnakeCase == other.SnakeCase || - this.SnakeCase != null && - this.SnakeCase.Equals(other.SnakeCase) + this.SnakeCase == input.SnakeCase || + (this.SnakeCase != null && + this.SnakeCase.Equals(input.SnakeCase)) ) && ( - this.Property == other.Property || - this.Property != null && - this.Property.Equals(other.Property) + this.Property == input.Property || + (this.Property != null && + this.Property.Equals(input.Property)) ) && ( - this._123Number == other._123Number || - this._123Number != null && - this._123Number.Equals(other._123Number) + this._123Number == input._123Number || + (this._123Number != null && + this._123Number.Equals(input._123Number)) ); } @@ -154,20 +152,18 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Name != null) - hash = hash * 59 + this._Name.GetHashCode(); + hashCode = hashCode * 59 + this._Name.GetHashCode(); if (this.SnakeCase != null) - hash = hash * 59 + this.SnakeCase.GetHashCode(); + hashCode = hashCode * 59 + this.SnakeCase.GetHashCode(); if (this.Property != null) - hash = hash * 59 + this.Property.GetHashCode(); + hashCode = hashCode * 59 + this.Property.GetHashCode(); if (this._123Number != null) - hash = hash * 59 + this._123Number.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._123Number.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs index 5c64221326b7..61c9be60c1d8 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/NumberOnly.cs @@ -70,30 +70,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as NumberOnly); + return this.Equals(input as NumberOnly); } /// /// Returns true if NumberOnly instances are equal /// - /// Instance of NumberOnly to be compared + /// Instance of NumberOnly to be compared /// Boolean - public bool Equals(NumberOnly other) + public bool Equals(NumberOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.JustNumber == other.JustNumber || - this.JustNumber != null && - this.JustNumber.Equals(other.JustNumber) + this.JustNumber == input.JustNumber || + (this.JustNumber != null && + this.JustNumber.Equals(input.JustNumber)) ); } @@ -103,14 +101,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.JustNumber != null) - hash = hash * 59 + this.JustNumber.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.JustNumber.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs index a048f999240f..e92a21c36c2e 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Order.cs @@ -151,55 +151,53 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Order); + return this.Equals(input as Order); } /// /// Returns true if Order instances are equal /// - /// Instance of Order to be compared + /// Instance of Order to be compared /// Boolean - public bool Equals(Order other) + public bool Equals(Order input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.PetId == other.PetId || - this.PetId != null && - this.PetId.Equals(other.PetId) + this.PetId == input.PetId || + (this.PetId != null && + this.PetId.Equals(input.PetId)) ) && ( - this.Quantity == other.Quantity || - this.Quantity != null && - this.Quantity.Equals(other.Quantity) + this.Quantity == input.Quantity || + (this.Quantity != null && + this.Quantity.Equals(input.Quantity)) ) && ( - this.ShipDate == other.ShipDate || - this.ShipDate != null && - this.ShipDate.Equals(other.ShipDate) + this.ShipDate == input.ShipDate || + (this.ShipDate != null && + this.ShipDate.Equals(input.ShipDate)) ) && ( - this.Status == other.Status || - this.Status != null && - this.Status.Equals(other.Status) + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) ) && ( - this.Complete == other.Complete || - this.Complete != null && - this.Complete.Equals(other.Complete) + this.Complete == input.Complete || + (this.Complete != null && + this.Complete.Equals(input.Complete)) ); } @@ -209,24 +207,22 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.PetId != null) - hash = hash * 59 + this.PetId.GetHashCode(); + hashCode = hashCode * 59 + this.PetId.GetHashCode(); if (this.Quantity != null) - hash = hash * 59 + this.Quantity.GetHashCode(); + hashCode = hashCode * 59 + this.Quantity.GetHashCode(); if (this.ShipDate != null) - hash = hash * 59 + this.ShipDate.GetHashCode(); + hashCode = hashCode * 59 + this.ShipDate.GetHashCode(); if (this.Status != null) - hash = hash * 59 + this.Status.GetHashCode(); + hashCode = hashCode * 59 + this.Status.GetHashCode(); if (this.Complete != null) - hash = hash * 59 + this.Complete.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Complete.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterBoolean.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterBoolean.cs index bfb00dea6f60..45a3382919fd 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterBoolean.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterBoolean.cs @@ -62,23 +62,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterBoolean); + return this.Equals(input as OuterBoolean); } /// /// Returns true if OuterBoolean instances are equal /// - /// Instance of OuterBoolean to be compared + /// Instance of OuterBoolean to be compared /// Boolean - public bool Equals(OuterBoolean other) + public bool Equals(OuterBoolean input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -90,12 +88,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs index ee323ed91167..4c12290c2ee1 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterComposite.cs @@ -88,40 +88,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterComposite); + return this.Equals(input as OuterComposite); } /// /// Returns true if OuterComposite instances are equal /// - /// Instance of OuterComposite to be compared + /// Instance of OuterComposite to be compared /// Boolean - public bool Equals(OuterComposite other) + public bool Equals(OuterComposite input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.MyNumber == other.MyNumber || - this.MyNumber != null && - this.MyNumber.Equals(other.MyNumber) + this.MyNumber == input.MyNumber || + (this.MyNumber != null && + this.MyNumber.Equals(input.MyNumber)) ) && ( - this.MyString == other.MyString || - this.MyString != null && - this.MyString.Equals(other.MyString) + this.MyString == input.MyString || + (this.MyString != null && + this.MyString.Equals(input.MyString)) ) && ( - this.MyBoolean == other.MyBoolean || - this.MyBoolean != null && - this.MyBoolean.Equals(other.MyBoolean) + this.MyBoolean == input.MyBoolean || + (this.MyBoolean != null && + this.MyBoolean.Equals(input.MyBoolean)) ); } @@ -131,18 +129,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.MyNumber != null) - hash = hash * 59 + this.MyNumber.GetHashCode(); + hashCode = hashCode * 59 + this.MyNumber.GetHashCode(); if (this.MyString != null) - hash = hash * 59 + this.MyString.GetHashCode(); + hashCode = hashCode * 59 + this.MyString.GetHashCode(); if (this.MyBoolean != null) - hash = hash * 59 + this.MyBoolean.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.MyBoolean.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterNumber.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterNumber.cs index 930e22a6e059..395239a27c1d 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterNumber.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterNumber.cs @@ -62,23 +62,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterNumber); + return this.Equals(input as OuterNumber); } /// /// Returns true if OuterNumber instances are equal /// - /// Instance of OuterNumber to be compared + /// Instance of OuterNumber to be compared /// Boolean - public bool Equals(OuterNumber other) + public bool Equals(OuterNumber input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -90,12 +88,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterString.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterString.cs index 0c3edc9a03d9..4a08ab3f7f7a 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterString.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/OuterString.cs @@ -62,23 +62,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterString); + return this.Equals(input as OuterString); } /// /// Returns true if OuterString instances are equal /// - /// Instance of OuterString to be compared + /// Instance of OuterString to be compared /// Boolean - public bool Equals(OuterString other) + public bool Equals(OuterString input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -90,12 +88,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs index 437f39fb86b4..4e3211a1654c 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Pet.cs @@ -164,55 +164,53 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Pet); + return this.Equals(input as Pet); } /// /// Returns true if Pet instances are equal /// - /// Instance of Pet to be compared + /// Instance of Pet to be compared /// Boolean - public bool Equals(Pet other) + public bool Equals(Pet input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Category == other.Category || - this.Category != null && - this.Category.Equals(other.Category) + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) ) && ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this.PhotoUrls == other.PhotoUrls || - this.PhotoUrls != null && - this.PhotoUrls.SequenceEqual(other.PhotoUrls) + this.PhotoUrls == input.PhotoUrls || + (this.PhotoUrls != null && + this.PhotoUrls.SequenceEqual(input.PhotoUrls)) ) && ( - this.Tags == other.Tags || - this.Tags != null && - this.Tags.SequenceEqual(other.Tags) + this.Tags == input.Tags || + (this.Tags != null && + this.Tags.SequenceEqual(input.Tags)) ) && ( - this.Status == other.Status || - this.Status != null && - this.Status.Equals(other.Status) + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) ); } @@ -222,24 +220,22 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Category != null) - hash = hash * 59 + this.Category.GetHashCode(); + hashCode = hashCode * 59 + this.Category.GetHashCode(); if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); + hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.PhotoUrls != null) - hash = hash * 59 + this.PhotoUrls.GetHashCode(); + hashCode = hashCode * 59 + this.PhotoUrls.GetHashCode(); if (this.Tags != null) - hash = hash * 59 + this.Tags.GetHashCode(); + hashCode = hashCode * 59 + this.Tags.GetHashCode(); if (this.Status != null) - hash = hash * 59 + this.Status.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs index ded42ca2dd5d..fa281fdecf78 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/ReadOnlyFirst.cs @@ -77,35 +77,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ReadOnlyFirst); + return this.Equals(input as ReadOnlyFirst); } /// /// Returns true if ReadOnlyFirst instances are equal /// - /// Instance of ReadOnlyFirst to be compared + /// Instance of ReadOnlyFirst to be compared /// Boolean - public bool Equals(ReadOnlyFirst other) + public bool Equals(ReadOnlyFirst input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Bar == other.Bar || - this.Bar != null && - this.Bar.Equals(other.Bar) + this.Bar == input.Bar || + (this.Bar != null && + this.Bar.Equals(input.Bar)) ) && ( - this.Baz == other.Baz || - this.Baz != null && - this.Baz.Equals(other.Baz) + this.Baz == input.Baz || + (this.Baz != null && + this.Baz.Equals(input.Baz)) ); } @@ -115,16 +113,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Bar != null) - hash = hash * 59 + this.Bar.GetHashCode(); + hashCode = hashCode * 59 + this.Bar.GetHashCode(); if (this.Baz != null) - hash = hash * 59 + this.Baz.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Baz.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/SpecialModelName.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/SpecialModelName.cs index e7ea5a590da6..198a04fee71f 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/SpecialModelName.cs @@ -70,30 +70,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as SpecialModelName); + return this.Equals(input as SpecialModelName); } /// /// Returns true if SpecialModelName instances are equal /// - /// Instance of SpecialModelName to be compared + /// Instance of SpecialModelName to be compared /// Boolean - public bool Equals(SpecialModelName other) + public bool Equals(SpecialModelName input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.SpecialPropertyName == other.SpecialPropertyName || - this.SpecialPropertyName != null && - this.SpecialPropertyName.Equals(other.SpecialPropertyName) + this.SpecialPropertyName == input.SpecialPropertyName || + (this.SpecialPropertyName != null && + this.SpecialPropertyName.Equals(input.SpecialPropertyName)) ); } @@ -103,14 +101,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.SpecialPropertyName != null) - hash = hash * 59 + this.SpecialPropertyName.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs index 98f183664b8a..a4ae373b979e 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/Tag.cs @@ -79,35 +79,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Tag); + return this.Equals(input as Tag); } /// /// Returns true if Tag instances are equal /// - /// Instance of Tag to be compared + /// Instance of Tag to be compared /// Boolean - public bool Equals(Tag other) + public bool Equals(Tag input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ); } @@ -117,16 +115,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs index 40cafb719e11..ada8d6823569 100644 --- a/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs +++ b/samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/User.cs @@ -134,65 +134,63 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as User); + return this.Equals(input as User); } /// /// Returns true if User instances are equal /// - /// Instance of User to be compared + /// Instance of User to be compared /// Boolean - public bool Equals(User other) + public bool Equals(User input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Username == other.Username || - this.Username != null && - this.Username.Equals(other.Username) + this.Username == input.Username || + (this.Username != null && + this.Username.Equals(input.Username)) ) && ( - this.FirstName == other.FirstName || - this.FirstName != null && - this.FirstName.Equals(other.FirstName) + this.FirstName == input.FirstName || + (this.FirstName != null && + this.FirstName.Equals(input.FirstName)) ) && ( - this.LastName == other.LastName || - this.LastName != null && - this.LastName.Equals(other.LastName) + this.LastName == input.LastName || + (this.LastName != null && + this.LastName.Equals(input.LastName)) ) && ( - this.Email == other.Email || - this.Email != null && - this.Email.Equals(other.Email) + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) ) && ( - this.Password == other.Password || - this.Password != null && - this.Password.Equals(other.Password) + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) ) && ( - this.Phone == other.Phone || - this.Phone != null && - this.Phone.Equals(other.Phone) + this.Phone == input.Phone || + (this.Phone != null && + this.Phone.Equals(input.Phone)) ) && ( - this.UserStatus == other.UserStatus || - this.UserStatus != null && - this.UserStatus.Equals(other.UserStatus) + this.UserStatus == input.UserStatus || + (this.UserStatus != null && + this.UserStatus.Equals(input.UserStatus)) ); } @@ -202,28 +200,26 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Username != null) - hash = hash * 59 + this.Username.GetHashCode(); + hashCode = hashCode * 59 + this.Username.GetHashCode(); if (this.FirstName != null) - hash = hash * 59 + this.FirstName.GetHashCode(); + hashCode = hashCode * 59 + this.FirstName.GetHashCode(); if (this.LastName != null) - hash = hash * 59 + this.LastName.GetHashCode(); + hashCode = hashCode * 59 + this.LastName.GetHashCode(); if (this.Email != null) - hash = hash * 59 + this.Email.GetHashCode(); + hashCode = hashCode * 59 + this.Email.GetHashCode(); if (this.Password != null) - hash = hash * 59 + this.Password.GetHashCode(); + hashCode = hashCode * 59 + this.Password.GetHashCode(); if (this.Phone != null) - hash = hash * 59 + this.Phone.GetHashCode(); + hashCode = hashCode * 59 + this.Phone.GetHashCode(); if (this.UserStatus != null) - hash = hash * 59 + this.UserStatus.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.UserStatus.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Client/ApiClient.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Client/ApiClient.cs index 7ed77bfba21e..be3e88992476 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Client/ApiClient.cs @@ -404,31 +404,29 @@ namespace IO.Swagger.Client /// /// Dynamically cast the object into target type. - /// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast /// - /// Object to be casted - /// Target type + /// Object to be casted + /// Target type /// Casted object - public static dynamic ConvertType(dynamic source, Type dest) + public static dynamic ConvertType(dynamic fromObject, Type toObject) { - return Convert.ChangeType(source, dest); + return Convert.ChangeType(fromObject, toObject); } /// /// Convert stream to byte array - /// Credit/Ref: http://stackoverflow.com/a/221941/677735 /// - /// Input stream to be converted + /// Input stream to be converted /// Byte array - public static byte[] ReadAsBytes(Stream input) + public static byte[] ReadAsBytes(Stream inputStream) { - byte[] buffer = new byte[16*1024]; + byte[] buf = new byte[16*1024]; using (MemoryStream ms = new MemoryStream()) { - int read; - while ((read = input.Read(buffer, 0, buffer.Length)) > 0) + int count; + while ((count = inputStream.Read(buf, 0, buf.Length)) > 0) { - ms.Write(buffer, 0, read); + ms.Write(buf, 0, count); } return ms.ToArray(); } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index 59577230d541..abbedd7b4a0f 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AdditionalPropertiesClass.cs @@ -77,35 +77,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as AdditionalPropertiesClass); + return this.Equals(input as AdditionalPropertiesClass); } /// /// Returns true if AdditionalPropertiesClass instances are equal /// - /// Instance of AdditionalPropertiesClass to be compared + /// Instance of AdditionalPropertiesClass to be compared /// Boolean - public bool Equals(AdditionalPropertiesClass other) + public bool Equals(AdditionalPropertiesClass input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.MapProperty == other.MapProperty || - this.MapProperty != null && - this.MapProperty.SequenceEqual(other.MapProperty) + this.MapProperty == input.MapProperty || + (this.MapProperty != null && + this.MapProperty.SequenceEqual(input.MapProperty)) ) && ( - this.MapOfMapProperty == other.MapOfMapProperty || - this.MapOfMapProperty != null && - this.MapOfMapProperty.SequenceEqual(other.MapOfMapProperty) + this.MapOfMapProperty == input.MapOfMapProperty || + (this.MapOfMapProperty != null && + this.MapOfMapProperty.SequenceEqual(input.MapOfMapProperty)) ); } @@ -115,16 +113,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.MapProperty != null) - hash = hash * 59 + this.MapProperty.GetHashCode(); + hashCode = hashCode * 59 + this.MapProperty.GetHashCode(); if (this.MapOfMapProperty != null) - hash = hash * 59 + this.MapOfMapProperty.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs index e4ae9421f2f1..0f2c563bde1e 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Animal.cs @@ -98,35 +98,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Animal); + return this.Equals(input as Animal); } /// /// Returns true if Animal instances are equal /// - /// Instance of Animal to be compared + /// Instance of Animal to be compared /// Boolean - public bool Equals(Animal other) + public bool Equals(Animal input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ClassName == other.ClassName || - this.ClassName != null && - this.ClassName.Equals(other.ClassName) + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) ) && ( - this.Color == other.Color || - this.Color != null && - this.Color.Equals(other.Color) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ); } @@ -136,16 +134,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ClassName != null) - hash = hash * 59 + this.ClassName.GetHashCode(); + hashCode = hashCode * 59 + this.ClassName.GetHashCode(); if (this.Color != null) - hash = hash * 59 + this.Color.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Color.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AnimalFarm.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AnimalFarm.cs index d5346938104a..6e85a1197d74 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AnimalFarm.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/AnimalFarm.cs @@ -60,23 +60,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as AnimalFarm); + return this.Equals(input as AnimalFarm); } /// /// Returns true if AnimalFarm instances are equal /// - /// Instance of AnimalFarm to be compared + /// Instance of AnimalFarm to be compared /// Boolean - public bool Equals(AnimalFarm other) + public bool Equals(AnimalFarm input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -88,12 +86,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs index 68b19d436267..8782c39aee24 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ApiResponse.cs @@ -86,40 +86,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ApiResponse); + return this.Equals(input as ApiResponse); } /// /// Returns true if ApiResponse instances are equal /// - /// Instance of ApiResponse to be compared + /// Instance of ApiResponse to be compared /// Boolean - public bool Equals(ApiResponse other) + public bool Equals(ApiResponse input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Code == other.Code || - this.Code != null && - this.Code.Equals(other.Code) + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) ) && ( - this.Type == other.Type || - this.Type != null && - this.Type.Equals(other.Type) + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) ) && ( - this.Message == other.Message || - this.Message != null && - this.Message.Equals(other.Message) + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) ); } @@ -129,18 +127,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Code != null) - hash = hash * 59 + this.Code.GetHashCode(); + hashCode = hashCode * 59 + this.Code.GetHashCode(); if (this.Type != null) - hash = hash * 59 + this.Type.GetHashCode(); + hashCode = hashCode * 59 + this.Type.GetHashCode(); if (this.Message != null) - hash = hash * 59 + this.Message.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index 630fcea77fdc..1efbeb285c7a 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs @@ -68,30 +68,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ArrayOfArrayOfNumberOnly); + return this.Equals(input as ArrayOfArrayOfNumberOnly); } /// /// Returns true if ArrayOfArrayOfNumberOnly instances are equal /// - /// Instance of ArrayOfArrayOfNumberOnly to be compared + /// Instance of ArrayOfArrayOfNumberOnly to be compared /// Boolean - public bool Equals(ArrayOfArrayOfNumberOnly other) + public bool Equals(ArrayOfArrayOfNumberOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ArrayArrayNumber == other.ArrayArrayNumber || - this.ArrayArrayNumber != null && - this.ArrayArrayNumber.SequenceEqual(other.ArrayArrayNumber) + this.ArrayArrayNumber == input.ArrayArrayNumber || + (this.ArrayArrayNumber != null && + this.ArrayArrayNumber.SequenceEqual(input.ArrayArrayNumber)) ); } @@ -101,14 +99,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ArrayArrayNumber != null) - hash = hash * 59 + this.ArrayArrayNumber.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index c2a07e17a2bc..9f648182311c 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayOfNumberOnly.cs @@ -68,30 +68,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ArrayOfNumberOnly); + return this.Equals(input as ArrayOfNumberOnly); } /// /// Returns true if ArrayOfNumberOnly instances are equal /// - /// Instance of ArrayOfNumberOnly to be compared + /// Instance of ArrayOfNumberOnly to be compared /// Boolean - public bool Equals(ArrayOfNumberOnly other) + public bool Equals(ArrayOfNumberOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ArrayNumber == other.ArrayNumber || - this.ArrayNumber != null && - this.ArrayNumber.SequenceEqual(other.ArrayNumber) + this.ArrayNumber == input.ArrayNumber || + (this.ArrayNumber != null && + this.ArrayNumber.SequenceEqual(input.ArrayNumber)) ); } @@ -101,14 +99,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ArrayNumber != null) - hash = hash * 59 + this.ArrayNumber.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs index 36f253aa2259..ddd1bc881f1c 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ArrayTest.cs @@ -86,40 +86,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ArrayTest); + return this.Equals(input as ArrayTest); } /// /// Returns true if ArrayTest instances are equal /// - /// Instance of ArrayTest to be compared + /// Instance of ArrayTest to be compared /// Boolean - public bool Equals(ArrayTest other) + public bool Equals(ArrayTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ArrayOfString == other.ArrayOfString || - this.ArrayOfString != null && - this.ArrayOfString.SequenceEqual(other.ArrayOfString) + this.ArrayOfString == input.ArrayOfString || + (this.ArrayOfString != null && + this.ArrayOfString.SequenceEqual(input.ArrayOfString)) ) && ( - this.ArrayArrayOfInteger == other.ArrayArrayOfInteger || - this.ArrayArrayOfInteger != null && - this.ArrayArrayOfInteger.SequenceEqual(other.ArrayArrayOfInteger) + this.ArrayArrayOfInteger == input.ArrayArrayOfInteger || + (this.ArrayArrayOfInteger != null && + this.ArrayArrayOfInteger.SequenceEqual(input.ArrayArrayOfInteger)) ) && ( - this.ArrayArrayOfModel == other.ArrayArrayOfModel || - this.ArrayArrayOfModel != null && - this.ArrayArrayOfModel.SequenceEqual(other.ArrayArrayOfModel) + this.ArrayArrayOfModel == input.ArrayArrayOfModel || + (this.ArrayArrayOfModel != null && + this.ArrayArrayOfModel.SequenceEqual(input.ArrayArrayOfModel)) ); } @@ -129,18 +127,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ArrayOfString != null) - hash = hash * 59 + this.ArrayOfString.GetHashCode(); + hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode(); if (this.ArrayArrayOfInteger != null) - hash = hash * 59 + this.ArrayArrayOfInteger.GetHashCode(); + hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode(); if (this.ArrayArrayOfModel != null) - hash = hash * 59 + this.ArrayArrayOfModel.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs index 82df0116140d..e4a61efdd45b 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Capitalization.cs @@ -114,55 +114,53 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Capitalization); + return this.Equals(input as Capitalization); } /// /// Returns true if Capitalization instances are equal /// - /// Instance of Capitalization to be compared + /// Instance of Capitalization to be compared /// Boolean - public bool Equals(Capitalization other) + public bool Equals(Capitalization input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.SmallCamel == other.SmallCamel || - this.SmallCamel != null && - this.SmallCamel.Equals(other.SmallCamel) + this.SmallCamel == input.SmallCamel || + (this.SmallCamel != null && + this.SmallCamel.Equals(input.SmallCamel)) ) && ( - this.CapitalCamel == other.CapitalCamel || - this.CapitalCamel != null && - this.CapitalCamel.Equals(other.CapitalCamel) + this.CapitalCamel == input.CapitalCamel || + (this.CapitalCamel != null && + this.CapitalCamel.Equals(input.CapitalCamel)) ) && ( - this.SmallSnake == other.SmallSnake || - this.SmallSnake != null && - this.SmallSnake.Equals(other.SmallSnake) + this.SmallSnake == input.SmallSnake || + (this.SmallSnake != null && + this.SmallSnake.Equals(input.SmallSnake)) ) && ( - this.CapitalSnake == other.CapitalSnake || - this.CapitalSnake != null && - this.CapitalSnake.Equals(other.CapitalSnake) + this.CapitalSnake == input.CapitalSnake || + (this.CapitalSnake != null && + this.CapitalSnake.Equals(input.CapitalSnake)) ) && ( - this.SCAETHFlowPoints == other.SCAETHFlowPoints || - this.SCAETHFlowPoints != null && - this.SCAETHFlowPoints.Equals(other.SCAETHFlowPoints) + this.SCAETHFlowPoints == input.SCAETHFlowPoints || + (this.SCAETHFlowPoints != null && + this.SCAETHFlowPoints.Equals(input.SCAETHFlowPoints)) ) && ( - this.ATT_NAME == other.ATT_NAME || - this.ATT_NAME != null && - this.ATT_NAME.Equals(other.ATT_NAME) + this.ATT_NAME == input.ATT_NAME || + (this.ATT_NAME != null && + this.ATT_NAME.Equals(input.ATT_NAME)) ); } @@ -172,24 +170,22 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.SmallCamel != null) - hash = hash * 59 + this.SmallCamel.GetHashCode(); + hashCode = hashCode * 59 + this.SmallCamel.GetHashCode(); if (this.CapitalCamel != null) - hash = hash * 59 + this.CapitalCamel.GetHashCode(); + hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode(); if (this.SmallSnake != null) - hash = hash * 59 + this.SmallSnake.GetHashCode(); + hashCode = hashCode * 59 + this.SmallSnake.GetHashCode(); if (this.CapitalSnake != null) - hash = hash * 59 + this.CapitalSnake.GetHashCode(); + hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode(); if (this.SCAETHFlowPoints != null) - hash = hash * 59 + this.SCAETHFlowPoints.GetHashCode(); + hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode(); if (this.ATT_NAME != null) - hash = hash * 59 + this.ATT_NAME.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs index 027b7eb2bf9d..0d308f2cdadf 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Cat.cs @@ -107,40 +107,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Cat); + return this.Equals(input as Cat); } /// /// Returns true if Cat instances are equal /// - /// Instance of Cat to be compared + /// Instance of Cat to be compared /// Boolean - public bool Equals(Cat other) + public bool Equals(Cat input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ClassName == other.ClassName || - this.ClassName != null && - this.ClassName.Equals(other.ClassName) + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) ) && ( - this.Color == other.Color || - this.Color != null && - this.Color.Equals(other.Color) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) && ( - this.Declawed == other.Declawed || - this.Declawed != null && - this.Declawed.Equals(other.Declawed) + this.Declawed == input.Declawed || + (this.Declawed != null && + this.Declawed.Equals(input.Declawed)) ); } @@ -150,18 +148,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ClassName != null) - hash = hash * 59 + this.ClassName.GetHashCode(); + hashCode = hashCode * 59 + this.ClassName.GetHashCode(); if (this.Color != null) - hash = hash * 59 + this.Color.GetHashCode(); + hashCode = hashCode * 59 + this.Color.GetHashCode(); if (this.Declawed != null) - hash = hash * 59 + this.Declawed.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Declawed.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs index e705f2923d24..09cee2182e2f 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Category.cs @@ -77,35 +77,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Category); + return this.Equals(input as Category); } /// /// Returns true if Category instances are equal /// - /// Instance of Category to be compared + /// Instance of Category to be compared /// Boolean - public bool Equals(Category other) + public bool Equals(Category input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ); } @@ -115,16 +113,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs index 838c4e1df189..db91a825dc2c 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ClassModel.cs @@ -68,30 +68,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ClassModel); + return this.Equals(input as ClassModel); } /// /// Returns true if ClassModel instances are equal /// - /// Instance of ClassModel to be compared + /// Instance of ClassModel to be compared /// Boolean - public bool Equals(ClassModel other) + public bool Equals(ClassModel input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Class == other._Class || - this._Class != null && - this._Class.Equals(other._Class) + this._Class == input._Class || + (this._Class != null && + this._Class.Equals(input._Class)) ); } @@ -101,14 +99,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Class != null) - hash = hash * 59 + this._Class.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Class.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs index 092fdc74b0e2..ae6f09d160f6 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Dog.cs @@ -107,40 +107,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Dog); + return this.Equals(input as Dog); } /// /// Returns true if Dog instances are equal /// - /// Instance of Dog to be compared + /// Instance of Dog to be compared /// Boolean - public bool Equals(Dog other) + public bool Equals(Dog input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ClassName == other.ClassName || - this.ClassName != null && - this.ClassName.Equals(other.ClassName) + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) ) && ( - this.Color == other.Color || - this.Color != null && - this.Color.Equals(other.Color) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) && ( - this.Breed == other.Breed || - this.Breed != null && - this.Breed.Equals(other.Breed) + this.Breed == input.Breed || + (this.Breed != null && + this.Breed.Equals(input.Breed)) ); } @@ -150,18 +148,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ClassName != null) - hash = hash * 59 + this.ClassName.GetHashCode(); + hashCode = hashCode * 59 + this.ClassName.GetHashCode(); if (this.Color != null) - hash = hash * 59 + this.Color.GetHashCode(); + hashCode = hashCode * 59 + this.Color.GetHashCode(); if (this.Breed != null) - hash = hash * 59 + this.Breed.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Breed.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs index 5ba20e6f75a4..91c96bd77fc8 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumArrays.cs @@ -118,35 +118,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as EnumArrays); + return this.Equals(input as EnumArrays); } /// /// Returns true if EnumArrays instances are equal /// - /// Instance of EnumArrays to be compared + /// Instance of EnumArrays to be compared /// Boolean - public bool Equals(EnumArrays other) + public bool Equals(EnumArrays input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.JustSymbol == other.JustSymbol || - this.JustSymbol != null && - this.JustSymbol.Equals(other.JustSymbol) + this.JustSymbol == input.JustSymbol || + (this.JustSymbol != null && + this.JustSymbol.Equals(input.JustSymbol)) ) && ( - this.ArrayEnum == other.ArrayEnum || - this.ArrayEnum != null && - this.ArrayEnum.SequenceEqual(other.ArrayEnum) + this.ArrayEnum == input.ArrayEnum || + (this.ArrayEnum != null && + this.ArrayEnum.SequenceEqual(input.ArrayEnum)) ); } @@ -156,16 +154,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.JustSymbol != null) - hash = hash * 59 + this.JustSymbol.GetHashCode(); + hashCode = hashCode * 59 + this.JustSymbol.GetHashCode(); if (this.ArrayEnum != null) - hash = hash * 59 + this.ArrayEnum.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs index 86bbd995b703..c5385e5ae29f 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/EnumTest.cs @@ -161,45 +161,43 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as EnumTest); + return this.Equals(input as EnumTest); } /// /// Returns true if EnumTest instances are equal /// - /// Instance of EnumTest to be compared + /// Instance of EnumTest to be compared /// Boolean - public bool Equals(EnumTest other) + public bool Equals(EnumTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.EnumString == other.EnumString || - this.EnumString != null && - this.EnumString.Equals(other.EnumString) + this.EnumString == input.EnumString || + (this.EnumString != null && + this.EnumString.Equals(input.EnumString)) ) && ( - this.EnumInteger == other.EnumInteger || - this.EnumInteger != null && - this.EnumInteger.Equals(other.EnumInteger) + this.EnumInteger == input.EnumInteger || + (this.EnumInteger != null && + this.EnumInteger.Equals(input.EnumInteger)) ) && ( - this.EnumNumber == other.EnumNumber || - this.EnumNumber != null && - this.EnumNumber.Equals(other.EnumNumber) + this.EnumNumber == input.EnumNumber || + (this.EnumNumber != null && + this.EnumNumber.Equals(input.EnumNumber)) ) && ( - this.OuterEnum == other.OuterEnum || - this.OuterEnum != null && - this.OuterEnum.Equals(other.OuterEnum) + this.OuterEnum == input.OuterEnum || + (this.OuterEnum != null && + this.OuterEnum.Equals(input.OuterEnum)) ); } @@ -209,20 +207,18 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.EnumString != null) - hash = hash * 59 + this.EnumString.GetHashCode(); + hashCode = hashCode * 59 + this.EnumString.GetHashCode(); if (this.EnumInteger != null) - hash = hash * 59 + this.EnumInteger.GetHashCode(); + hashCode = hashCode * 59 + this.EnumInteger.GetHashCode(); if (this.EnumNumber != null) - hash = hash * 59 + this.EnumNumber.GetHashCode(); + hashCode = hashCode * 59 + this.EnumNumber.GetHashCode(); if (this.OuterEnum != null) - hash = hash * 59 + this.OuterEnum.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.OuterEnum.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs index 3a447d572424..3cbb1b86eff8 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/FormatTest.cs @@ -214,90 +214,88 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as FormatTest); + return this.Equals(input as FormatTest); } /// /// Returns true if FormatTest instances are equal /// - /// Instance of FormatTest to be compared + /// Instance of FormatTest to be compared /// Boolean - public bool Equals(FormatTest other) + public bool Equals(FormatTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Integer == other.Integer || - this.Integer != null && - this.Integer.Equals(other.Integer) + this.Integer == input.Integer || + (this.Integer != null && + this.Integer.Equals(input.Integer)) ) && ( - this.Int32 == other.Int32 || - this.Int32 != null && - this.Int32.Equals(other.Int32) + this.Int32 == input.Int32 || + (this.Int32 != null && + this.Int32.Equals(input.Int32)) ) && ( - this.Int64 == other.Int64 || - this.Int64 != null && - this.Int64.Equals(other.Int64) + this.Int64 == input.Int64 || + (this.Int64 != null && + this.Int64.Equals(input.Int64)) ) && ( - this.Number == other.Number || - this.Number != null && - this.Number.Equals(other.Number) + this.Number == input.Number || + (this.Number != null && + this.Number.Equals(input.Number)) ) && ( - this._Float == other._Float || - this._Float != null && - this._Float.Equals(other._Float) + this._Float == input._Float || + (this._Float != null && + this._Float.Equals(input._Float)) ) && ( - this._Double == other._Double || - this._Double != null && - this._Double.Equals(other._Double) + this._Double == input._Double || + (this._Double != null && + this._Double.Equals(input._Double)) ) && ( - this._String == other._String || - this._String != null && - this._String.Equals(other._String) + this._String == input._String || + (this._String != null && + this._String.Equals(input._String)) ) && ( - this._Byte == other._Byte || - this._Byte != null && - this._Byte.Equals(other._Byte) + this._Byte == input._Byte || + (this._Byte != null && + this._Byte.Equals(input._Byte)) ) && ( - this.Binary == other.Binary || - this.Binary != null && - this.Binary.Equals(other.Binary) + this.Binary == input.Binary || + (this.Binary != null && + this.Binary.Equals(input.Binary)) ) && ( - this.Date == other.Date || - this.Date != null && - this.Date.Equals(other.Date) + this.Date == input.Date || + (this.Date != null && + this.Date.Equals(input.Date)) ) && ( - this.DateTime == other.DateTime || - this.DateTime != null && - this.DateTime.Equals(other.DateTime) + this.DateTime == input.DateTime || + (this.DateTime != null && + this.DateTime.Equals(input.DateTime)) ) && ( - this.Uuid == other.Uuid || - this.Uuid != null && - this.Uuid.Equals(other.Uuid) + this.Uuid == input.Uuid || + (this.Uuid != null && + this.Uuid.Equals(input.Uuid)) ) && ( - this.Password == other.Password || - this.Password != null && - this.Password.Equals(other.Password) + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) ); } @@ -307,38 +305,36 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Integer != null) - hash = hash * 59 + this.Integer.GetHashCode(); + hashCode = hashCode * 59 + this.Integer.GetHashCode(); if (this.Int32 != null) - hash = hash * 59 + this.Int32.GetHashCode(); + hashCode = hashCode * 59 + this.Int32.GetHashCode(); if (this.Int64 != null) - hash = hash * 59 + this.Int64.GetHashCode(); + hashCode = hashCode * 59 + this.Int64.GetHashCode(); if (this.Number != null) - hash = hash * 59 + this.Number.GetHashCode(); + hashCode = hashCode * 59 + this.Number.GetHashCode(); if (this._Float != null) - hash = hash * 59 + this._Float.GetHashCode(); + hashCode = hashCode * 59 + this._Float.GetHashCode(); if (this._Double != null) - hash = hash * 59 + this._Double.GetHashCode(); + hashCode = hashCode * 59 + this._Double.GetHashCode(); if (this._String != null) - hash = hash * 59 + this._String.GetHashCode(); + hashCode = hashCode * 59 + this._String.GetHashCode(); if (this._Byte != null) - hash = hash * 59 + this._Byte.GetHashCode(); + hashCode = hashCode * 59 + this._Byte.GetHashCode(); if (this.Binary != null) - hash = hash * 59 + this.Binary.GetHashCode(); + hashCode = hashCode * 59 + this.Binary.GetHashCode(); if (this.Date != null) - hash = hash * 59 + this.Date.GetHashCode(); + hashCode = hashCode * 59 + this.Date.GetHashCode(); if (this.DateTime != null) - hash = hash * 59 + this.DateTime.GetHashCode(); + hashCode = hashCode * 59 + this.DateTime.GetHashCode(); if (this.Uuid != null) - hash = hash * 59 + this.Uuid.GetHashCode(); + hashCode = hashCode * 59 + this.Uuid.GetHashCode(); if (this.Password != null) - hash = hash * 59 + this.Password.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Password.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/HasOnlyReadOnly.cs index b03e05d8c1ba..9eca2f0d5af4 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/HasOnlyReadOnly.cs @@ -74,35 +74,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as HasOnlyReadOnly); + return this.Equals(input as HasOnlyReadOnly); } /// /// Returns true if HasOnlyReadOnly instances are equal /// - /// Instance of HasOnlyReadOnly to be compared + /// Instance of HasOnlyReadOnly to be compared /// Boolean - public bool Equals(HasOnlyReadOnly other) + public bool Equals(HasOnlyReadOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Bar == other.Bar || - this.Bar != null && - this.Bar.Equals(other.Bar) + this.Bar == input.Bar || + (this.Bar != null && + this.Bar.Equals(input.Bar)) ) && ( - this.Foo == other.Foo || - this.Foo != null && - this.Foo.Equals(other.Foo) + this.Foo == input.Foo || + (this.Foo != null && + this.Foo.Equals(input.Foo)) ); } @@ -112,16 +110,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Bar != null) - hash = hash * 59 + this.Bar.GetHashCode(); + hashCode = hashCode * 59 + this.Bar.GetHashCode(); if (this.Foo != null) - hash = hash * 59 + this.Foo.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Foo.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs index b703a1399d28..37cbae79e1ab 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/List.cs @@ -68,30 +68,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as List); + return this.Equals(input as List); } /// /// Returns true if List instances are equal /// - /// Instance of List to be compared + /// Instance of List to be compared /// Boolean - public bool Equals(List other) + public bool Equals(List input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._123List == other._123List || - this._123List != null && - this._123List.Equals(other._123List) + this._123List == input._123List || + (this._123List != null && + this._123List.Equals(input._123List)) ); } @@ -101,14 +99,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._123List != null) - hash = hash * 59 + this._123List.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._123List.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs index e6777d51cee6..35f5362abd82 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MapTest.cs @@ -98,35 +98,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as MapTest); + return this.Equals(input as MapTest); } /// /// Returns true if MapTest instances are equal /// - /// Instance of MapTest to be compared + /// Instance of MapTest to be compared /// Boolean - public bool Equals(MapTest other) + public bool Equals(MapTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.MapMapOfString == other.MapMapOfString || - this.MapMapOfString != null && - this.MapMapOfString.SequenceEqual(other.MapMapOfString) + this.MapMapOfString == input.MapMapOfString || + (this.MapMapOfString != null && + this.MapMapOfString.SequenceEqual(input.MapMapOfString)) ) && ( - this.MapOfEnumString == other.MapOfEnumString || - this.MapOfEnumString != null && - this.MapOfEnumString.SequenceEqual(other.MapOfEnumString) + this.MapOfEnumString == input.MapOfEnumString || + (this.MapOfEnumString != null && + this.MapOfEnumString.SequenceEqual(input.MapOfEnumString)) ); } @@ -136,16 +134,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.MapMapOfString != null) - hash = hash * 59 + this.MapMapOfString.GetHashCode(); + hashCode = hashCode * 59 + this.MapMapOfString.GetHashCode(); if (this.MapOfEnumString != null) - hash = hash * 59 + this.MapOfEnumString.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.MapOfEnumString.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 099c16428d9c..a16e6b23501a 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -86,40 +86,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as MixedPropertiesAndAdditionalPropertiesClass); + return this.Equals(input as MixedPropertiesAndAdditionalPropertiesClass); } /// /// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal /// - /// Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared + /// Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared /// Boolean - public bool Equals(MixedPropertiesAndAdditionalPropertiesClass other) + public bool Equals(MixedPropertiesAndAdditionalPropertiesClass input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Uuid == other.Uuid || - this.Uuid != null && - this.Uuid.Equals(other.Uuid) + this.Uuid == input.Uuid || + (this.Uuid != null && + this.Uuid.Equals(input.Uuid)) ) && ( - this.DateTime == other.DateTime || - this.DateTime != null && - this.DateTime.Equals(other.DateTime) + this.DateTime == input.DateTime || + (this.DateTime != null && + this.DateTime.Equals(input.DateTime)) ) && ( - this.Map == other.Map || - this.Map != null && - this.Map.SequenceEqual(other.Map) + this.Map == input.Map || + (this.Map != null && + this.Map.SequenceEqual(input.Map)) ); } @@ -129,18 +127,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Uuid != null) - hash = hash * 59 + this.Uuid.GetHashCode(); + hashCode = hashCode * 59 + this.Uuid.GetHashCode(); if (this.DateTime != null) - hash = hash * 59 + this.DateTime.GetHashCode(); + hashCode = hashCode * 59 + this.DateTime.GetHashCode(); if (this.Map != null) - hash = hash * 59 + this.Map.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Map.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs index 645976249c3d..f4647201c720 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Model200Response.cs @@ -77,35 +77,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Model200Response); + return this.Equals(input as Model200Response); } /// /// Returns true if Model200Response instances are equal /// - /// Instance of Model200Response to be compared + /// Instance of Model200Response to be compared /// Boolean - public bool Equals(Model200Response other) + public bool Equals(Model200Response input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this._Class == other._Class || - this._Class != null && - this._Class.Equals(other._Class) + this._Class == input._Class || + (this._Class != null && + this._Class.Equals(input._Class)) ); } @@ -115,16 +113,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); + hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this._Class != null) - hash = hash * 59 + this._Class.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Class.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs index 4fe4bd210aab..863a2a438d16 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelClient.cs @@ -68,30 +68,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ModelClient); + return this.Equals(input as ModelClient); } /// /// Returns true if ModelClient instances are equal /// - /// Instance of ModelClient to be compared + /// Instance of ModelClient to be compared /// Boolean - public bool Equals(ModelClient other) + public bool Equals(ModelClient input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Client == other._Client || - this._Client != null && - this._Client.Equals(other._Client) + this._Client == input._Client || + (this._Client != null && + this._Client.Equals(input._Client)) ); } @@ -101,14 +99,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Client != null) - hash = hash * 59 + this._Client.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Client.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelReturn.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelReturn.cs index e53a25cfbc9f..0e031e3ee47e 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelReturn.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ModelReturn.cs @@ -68,30 +68,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ModelReturn); + return this.Equals(input as ModelReturn); } /// /// Returns true if ModelReturn instances are equal /// - /// Instance of ModelReturn to be compared + /// Instance of ModelReturn to be compared /// Boolean - public bool Equals(ModelReturn other) + public bool Equals(ModelReturn input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Return == other._Return || - this._Return != null && - this._Return.Equals(other._Return) + this._Return == input._Return || + (this._Return != null && + this._Return.Equals(input._Return)) ); } @@ -101,14 +99,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Return != null) - hash = hash * 59 + this._Return.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Return.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Name.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Name.cs index 472df10fb4bf..cece286486fd 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Name.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Name.cs @@ -104,45 +104,43 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Name); + return this.Equals(input as Name); } /// /// Returns true if Name instances are equal /// - /// Instance of Name to be compared + /// Instance of Name to be compared /// Boolean - public bool Equals(Name other) + public bool Equals(Name input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Name == other._Name || - this._Name != null && - this._Name.Equals(other._Name) + this._Name == input._Name || + (this._Name != null && + this._Name.Equals(input._Name)) ) && ( - this.SnakeCase == other.SnakeCase || - this.SnakeCase != null && - this.SnakeCase.Equals(other.SnakeCase) + this.SnakeCase == input.SnakeCase || + (this.SnakeCase != null && + this.SnakeCase.Equals(input.SnakeCase)) ) && ( - this.Property == other.Property || - this.Property != null && - this.Property.Equals(other.Property) + this.Property == input.Property || + (this.Property != null && + this.Property.Equals(input.Property)) ) && ( - this._123Number == other._123Number || - this._123Number != null && - this._123Number.Equals(other._123Number) + this._123Number == input._123Number || + (this._123Number != null && + this._123Number.Equals(input._123Number)) ); } @@ -152,20 +150,18 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Name != null) - hash = hash * 59 + this._Name.GetHashCode(); + hashCode = hashCode * 59 + this._Name.GetHashCode(); if (this.SnakeCase != null) - hash = hash * 59 + this.SnakeCase.GetHashCode(); + hashCode = hashCode * 59 + this.SnakeCase.GetHashCode(); if (this.Property != null) - hash = hash * 59 + this.Property.GetHashCode(); + hashCode = hashCode * 59 + this.Property.GetHashCode(); if (this._123Number != null) - hash = hash * 59 + this._123Number.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._123Number.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs index bdde2701e685..7736b087c7b3 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/NumberOnly.cs @@ -68,30 +68,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as NumberOnly); + return this.Equals(input as NumberOnly); } /// /// Returns true if NumberOnly instances are equal /// - /// Instance of NumberOnly to be compared + /// Instance of NumberOnly to be compared /// Boolean - public bool Equals(NumberOnly other) + public bool Equals(NumberOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.JustNumber == other.JustNumber || - this.JustNumber != null && - this.JustNumber.Equals(other.JustNumber) + this.JustNumber == input.JustNumber || + (this.JustNumber != null && + this.JustNumber.Equals(input.JustNumber)) ); } @@ -101,14 +99,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.JustNumber != null) - hash = hash * 59 + this.JustNumber.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.JustNumber.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs index 351e0e1ecccb..13b3cdf6fc63 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Order.cs @@ -149,55 +149,53 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Order); + return this.Equals(input as Order); } /// /// Returns true if Order instances are equal /// - /// Instance of Order to be compared + /// Instance of Order to be compared /// Boolean - public bool Equals(Order other) + public bool Equals(Order input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.PetId == other.PetId || - this.PetId != null && - this.PetId.Equals(other.PetId) + this.PetId == input.PetId || + (this.PetId != null && + this.PetId.Equals(input.PetId)) ) && ( - this.Quantity == other.Quantity || - this.Quantity != null && - this.Quantity.Equals(other.Quantity) + this.Quantity == input.Quantity || + (this.Quantity != null && + this.Quantity.Equals(input.Quantity)) ) && ( - this.ShipDate == other.ShipDate || - this.ShipDate != null && - this.ShipDate.Equals(other.ShipDate) + this.ShipDate == input.ShipDate || + (this.ShipDate != null && + this.ShipDate.Equals(input.ShipDate)) ) && ( - this.Status == other.Status || - this.Status != null && - this.Status.Equals(other.Status) + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) ) && ( - this.Complete == other.Complete || - this.Complete != null && - this.Complete.Equals(other.Complete) + this.Complete == input.Complete || + (this.Complete != null && + this.Complete.Equals(input.Complete)) ); } @@ -207,24 +205,22 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.PetId != null) - hash = hash * 59 + this.PetId.GetHashCode(); + hashCode = hashCode * 59 + this.PetId.GetHashCode(); if (this.Quantity != null) - hash = hash * 59 + this.Quantity.GetHashCode(); + hashCode = hashCode * 59 + this.Quantity.GetHashCode(); if (this.ShipDate != null) - hash = hash * 59 + this.ShipDate.GetHashCode(); + hashCode = hashCode * 59 + this.ShipDate.GetHashCode(); if (this.Status != null) - hash = hash * 59 + this.Status.GetHashCode(); + hashCode = hashCode * 59 + this.Status.GetHashCode(); if (this.Complete != null) - hash = hash * 59 + this.Complete.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Complete.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterBoolean.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterBoolean.cs index 2b874aa2c3c9..72368984bb85 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterBoolean.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterBoolean.cs @@ -60,23 +60,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterBoolean); + return this.Equals(input as OuterBoolean); } /// /// Returns true if OuterBoolean instances are equal /// - /// Instance of OuterBoolean to be compared + /// Instance of OuterBoolean to be compared /// Boolean - public bool Equals(OuterBoolean other) + public bool Equals(OuterBoolean input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -88,12 +86,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs index 5856368edc99..084db10819a2 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterComposite.cs @@ -86,40 +86,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterComposite); + return this.Equals(input as OuterComposite); } /// /// Returns true if OuterComposite instances are equal /// - /// Instance of OuterComposite to be compared + /// Instance of OuterComposite to be compared /// Boolean - public bool Equals(OuterComposite other) + public bool Equals(OuterComposite input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.MyNumber == other.MyNumber || - this.MyNumber != null && - this.MyNumber.Equals(other.MyNumber) + this.MyNumber == input.MyNumber || + (this.MyNumber != null && + this.MyNumber.Equals(input.MyNumber)) ) && ( - this.MyString == other.MyString || - this.MyString != null && - this.MyString.Equals(other.MyString) + this.MyString == input.MyString || + (this.MyString != null && + this.MyString.Equals(input.MyString)) ) && ( - this.MyBoolean == other.MyBoolean || - this.MyBoolean != null && - this.MyBoolean.Equals(other.MyBoolean) + this.MyBoolean == input.MyBoolean || + (this.MyBoolean != null && + this.MyBoolean.Equals(input.MyBoolean)) ); } @@ -129,18 +127,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.MyNumber != null) - hash = hash * 59 + this.MyNumber.GetHashCode(); + hashCode = hashCode * 59 + this.MyNumber.GetHashCode(); if (this.MyString != null) - hash = hash * 59 + this.MyString.GetHashCode(); + hashCode = hashCode * 59 + this.MyString.GetHashCode(); if (this.MyBoolean != null) - hash = hash * 59 + this.MyBoolean.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.MyBoolean.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterNumber.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterNumber.cs index 157701e7778c..a9317a3a9f33 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterNumber.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterNumber.cs @@ -60,23 +60,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterNumber); + return this.Equals(input as OuterNumber); } /// /// Returns true if OuterNumber instances are equal /// - /// Instance of OuterNumber to be compared + /// Instance of OuterNumber to be compared /// Boolean - public bool Equals(OuterNumber other) + public bool Equals(OuterNumber input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -88,12 +86,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterString.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterString.cs index cdf8d1ba903b..3b7c5e6c9315 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterString.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/OuterString.cs @@ -60,23 +60,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterString); + return this.Equals(input as OuterString); } /// /// Returns true if OuterString instances are equal /// - /// Instance of OuterString to be compared + /// Instance of OuterString to be compared /// Boolean - public bool Equals(OuterString other) + public bool Equals(OuterString input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -88,12 +86,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs index b794f6b1f4ca..3e51a067ea2b 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Pet.cs @@ -162,55 +162,53 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Pet); + return this.Equals(input as Pet); } /// /// Returns true if Pet instances are equal /// - /// Instance of Pet to be compared + /// Instance of Pet to be compared /// Boolean - public bool Equals(Pet other) + public bool Equals(Pet input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Category == other.Category || - this.Category != null && - this.Category.Equals(other.Category) + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) ) && ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this.PhotoUrls == other.PhotoUrls || - this.PhotoUrls != null && - this.PhotoUrls.SequenceEqual(other.PhotoUrls) + this.PhotoUrls == input.PhotoUrls || + (this.PhotoUrls != null && + this.PhotoUrls.SequenceEqual(input.PhotoUrls)) ) && ( - this.Tags == other.Tags || - this.Tags != null && - this.Tags.SequenceEqual(other.Tags) + this.Tags == input.Tags || + (this.Tags != null && + this.Tags.SequenceEqual(input.Tags)) ) && ( - this.Status == other.Status || - this.Status != null && - this.Status.Equals(other.Status) + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) ); } @@ -220,24 +218,22 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Category != null) - hash = hash * 59 + this.Category.GetHashCode(); + hashCode = hashCode * 59 + this.Category.GetHashCode(); if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); + hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.PhotoUrls != null) - hash = hash * 59 + this.PhotoUrls.GetHashCode(); + hashCode = hashCode * 59 + this.PhotoUrls.GetHashCode(); if (this.Tags != null) - hash = hash * 59 + this.Tags.GetHashCode(); + hashCode = hashCode * 59 + this.Tags.GetHashCode(); if (this.Status != null) - hash = hash * 59 + this.Status.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs index 27492adc54ba..73e33ae3d4fa 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/ReadOnlyFirst.cs @@ -75,35 +75,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ReadOnlyFirst); + return this.Equals(input as ReadOnlyFirst); } /// /// Returns true if ReadOnlyFirst instances are equal /// - /// Instance of ReadOnlyFirst to be compared + /// Instance of ReadOnlyFirst to be compared /// Boolean - public bool Equals(ReadOnlyFirst other) + public bool Equals(ReadOnlyFirst input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Bar == other.Bar || - this.Bar != null && - this.Bar.Equals(other.Bar) + this.Bar == input.Bar || + (this.Bar != null && + this.Bar.Equals(input.Bar)) ) && ( - this.Baz == other.Baz || - this.Baz != null && - this.Baz.Equals(other.Baz) + this.Baz == input.Baz || + (this.Baz != null && + this.Baz.Equals(input.Baz)) ); } @@ -113,16 +111,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Bar != null) - hash = hash * 59 + this.Bar.GetHashCode(); + hashCode = hashCode * 59 + this.Bar.GetHashCode(); if (this.Baz != null) - hash = hash * 59 + this.Baz.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Baz.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/SpecialModelName.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/SpecialModelName.cs index f6ca2850cd93..5f412aa11353 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/SpecialModelName.cs @@ -68,30 +68,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as SpecialModelName); + return this.Equals(input as SpecialModelName); } /// /// Returns true if SpecialModelName instances are equal /// - /// Instance of SpecialModelName to be compared + /// Instance of SpecialModelName to be compared /// Boolean - public bool Equals(SpecialModelName other) + public bool Equals(SpecialModelName input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.SpecialPropertyName == other.SpecialPropertyName || - this.SpecialPropertyName != null && - this.SpecialPropertyName.Equals(other.SpecialPropertyName) + this.SpecialPropertyName == input.SpecialPropertyName || + (this.SpecialPropertyName != null && + this.SpecialPropertyName.Equals(input.SpecialPropertyName)) ); } @@ -101,14 +99,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.SpecialPropertyName != null) - hash = hash * 59 + this.SpecialPropertyName.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs index 779a0c0d07fb..0207cb981f03 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/Tag.cs @@ -77,35 +77,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Tag); + return this.Equals(input as Tag); } /// /// Returns true if Tag instances are equal /// - /// Instance of Tag to be compared + /// Instance of Tag to be compared /// Boolean - public bool Equals(Tag other) + public bool Equals(Tag input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ); } @@ -115,16 +113,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs index 669622d26138..c56c8cd1aa03 100644 --- a/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs +++ b/samples/client/petstore/csharp/SwaggerClientNetStandard/src/IO.Swagger/Model/User.cs @@ -132,65 +132,63 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as User); + return this.Equals(input as User); } /// /// Returns true if User instances are equal /// - /// Instance of User to be compared + /// Instance of User to be compared /// Boolean - public bool Equals(User other) + public bool Equals(User input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Username == other.Username || - this.Username != null && - this.Username.Equals(other.Username) + this.Username == input.Username || + (this.Username != null && + this.Username.Equals(input.Username)) ) && ( - this.FirstName == other.FirstName || - this.FirstName != null && - this.FirstName.Equals(other.FirstName) + this.FirstName == input.FirstName || + (this.FirstName != null && + this.FirstName.Equals(input.FirstName)) ) && ( - this.LastName == other.LastName || - this.LastName != null && - this.LastName.Equals(other.LastName) + this.LastName == input.LastName || + (this.LastName != null && + this.LastName.Equals(input.LastName)) ) && ( - this.Email == other.Email || - this.Email != null && - this.Email.Equals(other.Email) + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) ) && ( - this.Password == other.Password || - this.Password != null && - this.Password.Equals(other.Password) + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) ) && ( - this.Phone == other.Phone || - this.Phone != null && - this.Phone.Equals(other.Phone) + this.Phone == input.Phone || + (this.Phone != null && + this.Phone.Equals(input.Phone)) ) && ( - this.UserStatus == other.UserStatus || - this.UserStatus != null && - this.UserStatus.Equals(other.UserStatus) + this.UserStatus == input.UserStatus || + (this.UserStatus != null && + this.UserStatus.Equals(input.UserStatus)) ); } @@ -200,28 +198,26 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Username != null) - hash = hash * 59 + this.Username.GetHashCode(); + hashCode = hashCode * 59 + this.Username.GetHashCode(); if (this.FirstName != null) - hash = hash * 59 + this.FirstName.GetHashCode(); + hashCode = hashCode * 59 + this.FirstName.GetHashCode(); if (this.LastName != null) - hash = hash * 59 + this.LastName.GetHashCode(); + hashCode = hashCode * 59 + this.LastName.GetHashCode(); if (this.Email != null) - hash = hash * 59 + this.Email.GetHashCode(); + hashCode = hashCode * 59 + this.Email.GetHashCode(); if (this.Password != null) - hash = hash * 59 + this.Password.GetHashCode(); + hashCode = hashCode * 59 + this.Password.GetHashCode(); if (this.Phone != null) - hash = hash * 59 + this.Phone.GetHashCode(); + hashCode = hashCode * 59 + this.Phone.GetHashCode(); if (this.UserStatus != null) - hash = hash * 59 + this.UserStatus.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.UserStatus.GetHashCode(); + return hashCode; } } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Client/ApiClient.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Client/ApiClient.cs index 32545398ce45..f4c961cc61a8 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Client/ApiClient.cs @@ -399,31 +399,29 @@ namespace IO.Swagger.Client /// /// Dynamically cast the object into target type. - /// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast /// - /// Object to be casted - /// Target type + /// Object to be casted + /// Target type /// Casted object - public static dynamic ConvertType(dynamic source, Type dest) + public static dynamic ConvertType(dynamic fromObject, Type toObject) { - return Convert.ChangeType(source, dest); + return Convert.ChangeType(fromObject, toObject); } /// /// Convert stream to byte array - /// Credit/Ref: http://stackoverflow.com/a/221941/677735 /// - /// Input stream to be converted + /// Input stream to be converted /// Byte array - public static byte[] ReadAsBytes(Stream input) + public static byte[] ReadAsBytes(Stream inputStream) { - byte[] buffer = new byte[16*1024]; + byte[] buf = new byte[16*1024]; using (MemoryStream ms = new MemoryStream()) { - int read; - while ((read = input.Read(buffer, 0, buffer.Length)) > 0) + int count; + while ((count = inputStream.Read(buf, 0, buf.Length)) > 0) { - ms.Write(buffer, 0, read); + ms.Write(buf, 0, count); } return ms.ToArray(); } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs index 9d9ac890919f..835a6438372d 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AdditionalPropertiesClass.cs @@ -82,35 +82,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as AdditionalPropertiesClass); + return this.Equals(input as AdditionalPropertiesClass); } /// /// Returns true if AdditionalPropertiesClass instances are equal /// - /// Instance of AdditionalPropertiesClass to be compared + /// Instance of AdditionalPropertiesClass to be compared /// Boolean - public bool Equals(AdditionalPropertiesClass other) + public bool Equals(AdditionalPropertiesClass input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.MapProperty == other.MapProperty || - this.MapProperty != null && - this.MapProperty.SequenceEqual(other.MapProperty) + this.MapProperty == input.MapProperty || + (this.MapProperty != null && + this.MapProperty.SequenceEqual(input.MapProperty)) ) && ( - this.MapOfMapProperty == other.MapOfMapProperty || - this.MapOfMapProperty != null && - this.MapOfMapProperty.SequenceEqual(other.MapOfMapProperty) + this.MapOfMapProperty == input.MapOfMapProperty || + (this.MapOfMapProperty != null && + this.MapOfMapProperty.SequenceEqual(input.MapOfMapProperty)) ); } @@ -120,16 +118,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.MapProperty != null) - hash = hash * 59 + this.MapProperty.GetHashCode(); + hashCode = hashCode * 59 + this.MapProperty.GetHashCode(); if (this.MapOfMapProperty != null) - hash = hash * 59 + this.MapOfMapProperty.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs index 17ab7de691b4..ef827f202503 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Animal.cs @@ -103,35 +103,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Animal); + return this.Equals(input as Animal); } /// /// Returns true if Animal instances are equal /// - /// Instance of Animal to be compared + /// Instance of Animal to be compared /// Boolean - public bool Equals(Animal other) + public bool Equals(Animal input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ClassName == other.ClassName || - this.ClassName != null && - this.ClassName.Equals(other.ClassName) + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) ) && ( - this.Color == other.Color || - this.Color != null && - this.Color.Equals(other.Color) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ); } @@ -141,16 +139,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ClassName != null) - hash = hash * 59 + this.ClassName.GetHashCode(); + hashCode = hashCode * 59 + this.ClassName.GetHashCode(); if (this.Color != null) - hash = hash * 59 + this.Color.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Color.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AnimalFarm.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AnimalFarm.cs index b3d45b3e5ea5..c42cc160bf31 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AnimalFarm.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/AnimalFarm.cs @@ -65,23 +65,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as AnimalFarm); + return this.Equals(input as AnimalFarm); } /// /// Returns true if AnimalFarm instances are equal /// - /// Instance of AnimalFarm to be compared + /// Instance of AnimalFarm to be compared /// Boolean - public bool Equals(AnimalFarm other) + public bool Equals(AnimalFarm input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -93,12 +91,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs index 975384e1b0e4..ef6b5c3e1836 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ApiResponse.cs @@ -91,40 +91,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ApiResponse); + return this.Equals(input as ApiResponse); } /// /// Returns true if ApiResponse instances are equal /// - /// Instance of ApiResponse to be compared + /// Instance of ApiResponse to be compared /// Boolean - public bool Equals(ApiResponse other) + public bool Equals(ApiResponse input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Code == other.Code || - this.Code != null && - this.Code.Equals(other.Code) + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) ) && ( - this.Type == other.Type || - this.Type != null && - this.Type.Equals(other.Type) + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) ) && ( - this.Message == other.Message || - this.Message != null && - this.Message.Equals(other.Message) + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) ); } @@ -134,18 +132,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Code != null) - hash = hash * 59 + this.Code.GetHashCode(); + hashCode = hashCode * 59 + this.Code.GetHashCode(); if (this.Type != null) - hash = hash * 59 + this.Type.GetHashCode(); + hashCode = hashCode * 59 + this.Type.GetHashCode(); if (this.Message != null) - hash = hash * 59 + this.Message.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs index baadc40cfdcc..a134c17caeab 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfArrayOfNumberOnly.cs @@ -73,30 +73,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ArrayOfArrayOfNumberOnly); + return this.Equals(input as ArrayOfArrayOfNumberOnly); } /// /// Returns true if ArrayOfArrayOfNumberOnly instances are equal /// - /// Instance of ArrayOfArrayOfNumberOnly to be compared + /// Instance of ArrayOfArrayOfNumberOnly to be compared /// Boolean - public bool Equals(ArrayOfArrayOfNumberOnly other) + public bool Equals(ArrayOfArrayOfNumberOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ArrayArrayNumber == other.ArrayArrayNumber || - this.ArrayArrayNumber != null && - this.ArrayArrayNumber.SequenceEqual(other.ArrayArrayNumber) + this.ArrayArrayNumber == input.ArrayArrayNumber || + (this.ArrayArrayNumber != null && + this.ArrayArrayNumber.SequenceEqual(input.ArrayArrayNumber)) ); } @@ -106,14 +104,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ArrayArrayNumber != null) - hash = hash * 59 + this.ArrayArrayNumber.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs index ad3ff4233821..ed2f0e4d26eb 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayOfNumberOnly.cs @@ -73,30 +73,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ArrayOfNumberOnly); + return this.Equals(input as ArrayOfNumberOnly); } /// /// Returns true if ArrayOfNumberOnly instances are equal /// - /// Instance of ArrayOfNumberOnly to be compared + /// Instance of ArrayOfNumberOnly to be compared /// Boolean - public bool Equals(ArrayOfNumberOnly other) + public bool Equals(ArrayOfNumberOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ArrayNumber == other.ArrayNumber || - this.ArrayNumber != null && - this.ArrayNumber.SequenceEqual(other.ArrayNumber) + this.ArrayNumber == input.ArrayNumber || + (this.ArrayNumber != null && + this.ArrayNumber.SequenceEqual(input.ArrayNumber)) ); } @@ -106,14 +104,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ArrayNumber != null) - hash = hash * 59 + this.ArrayNumber.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs index 247dd43f8971..9b084bf10293 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ArrayTest.cs @@ -91,40 +91,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ArrayTest); + return this.Equals(input as ArrayTest); } /// /// Returns true if ArrayTest instances are equal /// - /// Instance of ArrayTest to be compared + /// Instance of ArrayTest to be compared /// Boolean - public bool Equals(ArrayTest other) + public bool Equals(ArrayTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ArrayOfString == other.ArrayOfString || - this.ArrayOfString != null && - this.ArrayOfString.SequenceEqual(other.ArrayOfString) + this.ArrayOfString == input.ArrayOfString || + (this.ArrayOfString != null && + this.ArrayOfString.SequenceEqual(input.ArrayOfString)) ) && ( - this.ArrayArrayOfInteger == other.ArrayArrayOfInteger || - this.ArrayArrayOfInteger != null && - this.ArrayArrayOfInteger.SequenceEqual(other.ArrayArrayOfInteger) + this.ArrayArrayOfInteger == input.ArrayArrayOfInteger || + (this.ArrayArrayOfInteger != null && + this.ArrayArrayOfInteger.SequenceEqual(input.ArrayArrayOfInteger)) ) && ( - this.ArrayArrayOfModel == other.ArrayArrayOfModel || - this.ArrayArrayOfModel != null && - this.ArrayArrayOfModel.SequenceEqual(other.ArrayArrayOfModel) + this.ArrayArrayOfModel == input.ArrayArrayOfModel || + (this.ArrayArrayOfModel != null && + this.ArrayArrayOfModel.SequenceEqual(input.ArrayArrayOfModel)) ); } @@ -134,18 +132,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ArrayOfString != null) - hash = hash * 59 + this.ArrayOfString.GetHashCode(); + hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode(); if (this.ArrayArrayOfInteger != null) - hash = hash * 59 + this.ArrayArrayOfInteger.GetHashCode(); + hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode(); if (this.ArrayArrayOfModel != null) - hash = hash * 59 + this.ArrayArrayOfModel.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs index dc8240c875a0..fa6332b281f5 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Capitalization.cs @@ -119,55 +119,53 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Capitalization); + return this.Equals(input as Capitalization); } /// /// Returns true if Capitalization instances are equal /// - /// Instance of Capitalization to be compared + /// Instance of Capitalization to be compared /// Boolean - public bool Equals(Capitalization other) + public bool Equals(Capitalization input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.SmallCamel == other.SmallCamel || - this.SmallCamel != null && - this.SmallCamel.Equals(other.SmallCamel) + this.SmallCamel == input.SmallCamel || + (this.SmallCamel != null && + this.SmallCamel.Equals(input.SmallCamel)) ) && ( - this.CapitalCamel == other.CapitalCamel || - this.CapitalCamel != null && - this.CapitalCamel.Equals(other.CapitalCamel) + this.CapitalCamel == input.CapitalCamel || + (this.CapitalCamel != null && + this.CapitalCamel.Equals(input.CapitalCamel)) ) && ( - this.SmallSnake == other.SmallSnake || - this.SmallSnake != null && - this.SmallSnake.Equals(other.SmallSnake) + this.SmallSnake == input.SmallSnake || + (this.SmallSnake != null && + this.SmallSnake.Equals(input.SmallSnake)) ) && ( - this.CapitalSnake == other.CapitalSnake || - this.CapitalSnake != null && - this.CapitalSnake.Equals(other.CapitalSnake) + this.CapitalSnake == input.CapitalSnake || + (this.CapitalSnake != null && + this.CapitalSnake.Equals(input.CapitalSnake)) ) && ( - this.SCAETHFlowPoints == other.SCAETHFlowPoints || - this.SCAETHFlowPoints != null && - this.SCAETHFlowPoints.Equals(other.SCAETHFlowPoints) + this.SCAETHFlowPoints == input.SCAETHFlowPoints || + (this.SCAETHFlowPoints != null && + this.SCAETHFlowPoints.Equals(input.SCAETHFlowPoints)) ) && ( - this.ATT_NAME == other.ATT_NAME || - this.ATT_NAME != null && - this.ATT_NAME.Equals(other.ATT_NAME) + this.ATT_NAME == input.ATT_NAME || + (this.ATT_NAME != null && + this.ATT_NAME.Equals(input.ATT_NAME)) ); } @@ -177,24 +175,22 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.SmallCamel != null) - hash = hash * 59 + this.SmallCamel.GetHashCode(); + hashCode = hashCode * 59 + this.SmallCamel.GetHashCode(); if (this.CapitalCamel != null) - hash = hash * 59 + this.CapitalCamel.GetHashCode(); + hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode(); if (this.SmallSnake != null) - hash = hash * 59 + this.SmallSnake.GetHashCode(); + hashCode = hashCode * 59 + this.SmallSnake.GetHashCode(); if (this.CapitalSnake != null) - hash = hash * 59 + this.CapitalSnake.GetHashCode(); + hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode(); if (this.SCAETHFlowPoints != null) - hash = hash * 59 + this.SCAETHFlowPoints.GetHashCode(); + hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode(); if (this.ATT_NAME != null) - hash = hash * 59 + this.ATT_NAME.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs index 5e6652a42153..70745b083c02 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Cat.cs @@ -112,40 +112,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Cat); + return this.Equals(input as Cat); } /// /// Returns true if Cat instances are equal /// - /// Instance of Cat to be compared + /// Instance of Cat to be compared /// Boolean - public bool Equals(Cat other) + public bool Equals(Cat input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ClassName == other.ClassName || - this.ClassName != null && - this.ClassName.Equals(other.ClassName) + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) ) && ( - this.Color == other.Color || - this.Color != null && - this.Color.Equals(other.Color) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) && ( - this.Declawed == other.Declawed || - this.Declawed != null && - this.Declawed.Equals(other.Declawed) + this.Declawed == input.Declawed || + (this.Declawed != null && + this.Declawed.Equals(input.Declawed)) ); } @@ -155,18 +153,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ClassName != null) - hash = hash * 59 + this.ClassName.GetHashCode(); + hashCode = hashCode * 59 + this.ClassName.GetHashCode(); if (this.Color != null) - hash = hash * 59 + this.Color.GetHashCode(); + hashCode = hashCode * 59 + this.Color.GetHashCode(); if (this.Declawed != null) - hash = hash * 59 + this.Declawed.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Declawed.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs index 1427ab298216..5208f0321690 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Category.cs @@ -82,35 +82,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Category); + return this.Equals(input as Category); } /// /// Returns true if Category instances are equal /// - /// Instance of Category to be compared + /// Instance of Category to be compared /// Boolean - public bool Equals(Category other) + public bool Equals(Category input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ); } @@ -120,16 +118,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs index cd5ec293b8eb..8b017f9d7072 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ClassModel.cs @@ -73,30 +73,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ClassModel); + return this.Equals(input as ClassModel); } /// /// Returns true if ClassModel instances are equal /// - /// Instance of ClassModel to be compared + /// Instance of ClassModel to be compared /// Boolean - public bool Equals(ClassModel other) + public bool Equals(ClassModel input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Class == other._Class || - this._Class != null && - this._Class.Equals(other._Class) + this._Class == input._Class || + (this._Class != null && + this._Class.Equals(input._Class)) ); } @@ -106,14 +104,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Class != null) - hash = hash * 59 + this._Class.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Class.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Dog.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Dog.cs index 1a616d32b5f4..0d66a97f4dc7 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Dog.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Dog.cs @@ -112,40 +112,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Dog); + return this.Equals(input as Dog); } /// /// Returns true if Dog instances are equal /// - /// Instance of Dog to be compared + /// Instance of Dog to be compared /// Boolean - public bool Equals(Dog other) + public bool Equals(Dog input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.ClassName == other.ClassName || - this.ClassName != null && - this.ClassName.Equals(other.ClassName) + this.ClassName == input.ClassName || + (this.ClassName != null && + this.ClassName.Equals(input.ClassName)) ) && ( - this.Color == other.Color || - this.Color != null && - this.Color.Equals(other.Color) + this.Color == input.Color || + (this.Color != null && + this.Color.Equals(input.Color)) ) && ( - this.Breed == other.Breed || - this.Breed != null && - this.Breed.Equals(other.Breed) + this.Breed == input.Breed || + (this.Breed != null && + this.Breed.Equals(input.Breed)) ); } @@ -155,18 +153,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.ClassName != null) - hash = hash * 59 + this.ClassName.GetHashCode(); + hashCode = hashCode * 59 + this.ClassName.GetHashCode(); if (this.Color != null) - hash = hash * 59 + this.Color.GetHashCode(); + hashCode = hashCode * 59 + this.Color.GetHashCode(); if (this.Breed != null) - hash = hash * 59 + this.Breed.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Breed.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs index 610a83d89ae3..ed7f544d8fa8 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumArrays.cs @@ -123,35 +123,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as EnumArrays); + return this.Equals(input as EnumArrays); } /// /// Returns true if EnumArrays instances are equal /// - /// Instance of EnumArrays to be compared + /// Instance of EnumArrays to be compared /// Boolean - public bool Equals(EnumArrays other) + public bool Equals(EnumArrays input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.JustSymbol == other.JustSymbol || - this.JustSymbol != null && - this.JustSymbol.Equals(other.JustSymbol) + this.JustSymbol == input.JustSymbol || + (this.JustSymbol != null && + this.JustSymbol.Equals(input.JustSymbol)) ) && ( - this.ArrayEnum == other.ArrayEnum || - this.ArrayEnum != null && - this.ArrayEnum.SequenceEqual(other.ArrayEnum) + this.ArrayEnum == input.ArrayEnum || + (this.ArrayEnum != null && + this.ArrayEnum.SequenceEqual(input.ArrayEnum)) ); } @@ -161,16 +159,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.JustSymbol != null) - hash = hash * 59 + this.JustSymbol.GetHashCode(); + hashCode = hashCode * 59 + this.JustSymbol.GetHashCode(); if (this.ArrayEnum != null) - hash = hash * 59 + this.ArrayEnum.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs index 1ebdbd6a44d6..e909c51c31e7 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/EnumTest.cs @@ -166,45 +166,43 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as EnumTest); + return this.Equals(input as EnumTest); } /// /// Returns true if EnumTest instances are equal /// - /// Instance of EnumTest to be compared + /// Instance of EnumTest to be compared /// Boolean - public bool Equals(EnumTest other) + public bool Equals(EnumTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.EnumString == other.EnumString || - this.EnumString != null && - this.EnumString.Equals(other.EnumString) + this.EnumString == input.EnumString || + (this.EnumString != null && + this.EnumString.Equals(input.EnumString)) ) && ( - this.EnumInteger == other.EnumInteger || - this.EnumInteger != null && - this.EnumInteger.Equals(other.EnumInteger) + this.EnumInteger == input.EnumInteger || + (this.EnumInteger != null && + this.EnumInteger.Equals(input.EnumInteger)) ) && ( - this.EnumNumber == other.EnumNumber || - this.EnumNumber != null && - this.EnumNumber.Equals(other.EnumNumber) + this.EnumNumber == input.EnumNumber || + (this.EnumNumber != null && + this.EnumNumber.Equals(input.EnumNumber)) ) && ( - this.OuterEnum == other.OuterEnum || - this.OuterEnum != null && - this.OuterEnum.Equals(other.OuterEnum) + this.OuterEnum == input.OuterEnum || + (this.OuterEnum != null && + this.OuterEnum.Equals(input.OuterEnum)) ); } @@ -214,20 +212,18 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.EnumString != null) - hash = hash * 59 + this.EnumString.GetHashCode(); + hashCode = hashCode * 59 + this.EnumString.GetHashCode(); if (this.EnumInteger != null) - hash = hash * 59 + this.EnumInteger.GetHashCode(); + hashCode = hashCode * 59 + this.EnumInteger.GetHashCode(); if (this.EnumNumber != null) - hash = hash * 59 + this.EnumNumber.GetHashCode(); + hashCode = hashCode * 59 + this.EnumNumber.GetHashCode(); if (this.OuterEnum != null) - hash = hash * 59 + this.OuterEnum.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.OuterEnum.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs index 3de9bba51c1e..bed680021422 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs @@ -219,90 +219,88 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as FormatTest); + return this.Equals(input as FormatTest); } /// /// Returns true if FormatTest instances are equal /// - /// Instance of FormatTest to be compared + /// Instance of FormatTest to be compared /// Boolean - public bool Equals(FormatTest other) + public bool Equals(FormatTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Integer == other.Integer || - this.Integer != null && - this.Integer.Equals(other.Integer) + this.Integer == input.Integer || + (this.Integer != null && + this.Integer.Equals(input.Integer)) ) && ( - this.Int32 == other.Int32 || - this.Int32 != null && - this.Int32.Equals(other.Int32) + this.Int32 == input.Int32 || + (this.Int32 != null && + this.Int32.Equals(input.Int32)) ) && ( - this.Int64 == other.Int64 || - this.Int64 != null && - this.Int64.Equals(other.Int64) + this.Int64 == input.Int64 || + (this.Int64 != null && + this.Int64.Equals(input.Int64)) ) && ( - this.Number == other.Number || - this.Number != null && - this.Number.Equals(other.Number) + this.Number == input.Number || + (this.Number != null && + this.Number.Equals(input.Number)) ) && ( - this._Float == other._Float || - this._Float != null && - this._Float.Equals(other._Float) + this._Float == input._Float || + (this._Float != null && + this._Float.Equals(input._Float)) ) && ( - this._Double == other._Double || - this._Double != null && - this._Double.Equals(other._Double) + this._Double == input._Double || + (this._Double != null && + this._Double.Equals(input._Double)) ) && ( - this._String == other._String || - this._String != null && - this._String.Equals(other._String) + this._String == input._String || + (this._String != null && + this._String.Equals(input._String)) ) && ( - this._Byte == other._Byte || - this._Byte != null && - this._Byte.Equals(other._Byte) + this._Byte == input._Byte || + (this._Byte != null && + this._Byte.Equals(input._Byte)) ) && ( - this.Binary == other.Binary || - this.Binary != null && - this.Binary.Equals(other.Binary) + this.Binary == input.Binary || + (this.Binary != null && + this.Binary.Equals(input.Binary)) ) && ( - this.Date == other.Date || - this.Date != null && - this.Date.Equals(other.Date) + this.Date == input.Date || + (this.Date != null && + this.Date.Equals(input.Date)) ) && ( - this.DateTime == other.DateTime || - this.DateTime != null && - this.DateTime.Equals(other.DateTime) + this.DateTime == input.DateTime || + (this.DateTime != null && + this.DateTime.Equals(input.DateTime)) ) && ( - this.Uuid == other.Uuid || - this.Uuid != null && - this.Uuid.Equals(other.Uuid) + this.Uuid == input.Uuid || + (this.Uuid != null && + this.Uuid.Equals(input.Uuid)) ) && ( - this.Password == other.Password || - this.Password != null && - this.Password.Equals(other.Password) + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) ); } @@ -312,38 +310,36 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Integer != null) - hash = hash * 59 + this.Integer.GetHashCode(); + hashCode = hashCode * 59 + this.Integer.GetHashCode(); if (this.Int32 != null) - hash = hash * 59 + this.Int32.GetHashCode(); + hashCode = hashCode * 59 + this.Int32.GetHashCode(); if (this.Int64 != null) - hash = hash * 59 + this.Int64.GetHashCode(); + hashCode = hashCode * 59 + this.Int64.GetHashCode(); if (this.Number != null) - hash = hash * 59 + this.Number.GetHashCode(); + hashCode = hashCode * 59 + this.Number.GetHashCode(); if (this._Float != null) - hash = hash * 59 + this._Float.GetHashCode(); + hashCode = hashCode * 59 + this._Float.GetHashCode(); if (this._Double != null) - hash = hash * 59 + this._Double.GetHashCode(); + hashCode = hashCode * 59 + this._Double.GetHashCode(); if (this._String != null) - hash = hash * 59 + this._String.GetHashCode(); + hashCode = hashCode * 59 + this._String.GetHashCode(); if (this._Byte != null) - hash = hash * 59 + this._Byte.GetHashCode(); + hashCode = hashCode * 59 + this._Byte.GetHashCode(); if (this.Binary != null) - hash = hash * 59 + this.Binary.GetHashCode(); + hashCode = hashCode * 59 + this.Binary.GetHashCode(); if (this.Date != null) - hash = hash * 59 + this.Date.GetHashCode(); + hashCode = hashCode * 59 + this.Date.GetHashCode(); if (this.DateTime != null) - hash = hash * 59 + this.DateTime.GetHashCode(); + hashCode = hashCode * 59 + this.DateTime.GetHashCode(); if (this.Uuid != null) - hash = hash * 59 + this.Uuid.GetHashCode(); + hashCode = hashCode * 59 + this.Uuid.GetHashCode(); if (this.Password != null) - hash = hash * 59 + this.Password.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Password.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/HasOnlyReadOnly.cs index ca30037a8791..87982185d618 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/HasOnlyReadOnly.cs @@ -79,35 +79,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as HasOnlyReadOnly); + return this.Equals(input as HasOnlyReadOnly); } /// /// Returns true if HasOnlyReadOnly instances are equal /// - /// Instance of HasOnlyReadOnly to be compared + /// Instance of HasOnlyReadOnly to be compared /// Boolean - public bool Equals(HasOnlyReadOnly other) + public bool Equals(HasOnlyReadOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Bar == other.Bar || - this.Bar != null && - this.Bar.Equals(other.Bar) + this.Bar == input.Bar || + (this.Bar != null && + this.Bar.Equals(input.Bar)) ) && ( - this.Foo == other.Foo || - this.Foo != null && - this.Foo.Equals(other.Foo) + this.Foo == input.Foo || + (this.Foo != null && + this.Foo.Equals(input.Foo)) ); } @@ -117,16 +115,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Bar != null) - hash = hash * 59 + this.Bar.GetHashCode(); + hashCode = hashCode * 59 + this.Bar.GetHashCode(); if (this.Foo != null) - hash = hash * 59 + this.Foo.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Foo.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs index df1310746853..a6f5a1ce908b 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/List.cs @@ -73,30 +73,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as List); + return this.Equals(input as List); } /// /// Returns true if List instances are equal /// - /// Instance of List to be compared + /// Instance of List to be compared /// Boolean - public bool Equals(List other) + public bool Equals(List input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._123List == other._123List || - this._123List != null && - this._123List.Equals(other._123List) + this._123List == input._123List || + (this._123List != null && + this._123List.Equals(input._123List)) ); } @@ -106,14 +104,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._123List != null) - hash = hash * 59 + this._123List.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._123List.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs index 4bf3326d546a..4a68a63804d5 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MapTest.cs @@ -103,35 +103,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as MapTest); + return this.Equals(input as MapTest); } /// /// Returns true if MapTest instances are equal /// - /// Instance of MapTest to be compared + /// Instance of MapTest to be compared /// Boolean - public bool Equals(MapTest other) + public bool Equals(MapTest input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.MapMapOfString == other.MapMapOfString || - this.MapMapOfString != null && - this.MapMapOfString.SequenceEqual(other.MapMapOfString) + this.MapMapOfString == input.MapMapOfString || + (this.MapMapOfString != null && + this.MapMapOfString.SequenceEqual(input.MapMapOfString)) ) && ( - this.MapOfEnumString == other.MapOfEnumString || - this.MapOfEnumString != null && - this.MapOfEnumString.SequenceEqual(other.MapOfEnumString) + this.MapOfEnumString == input.MapOfEnumString || + (this.MapOfEnumString != null && + this.MapOfEnumString.SequenceEqual(input.MapOfEnumString)) ); } @@ -141,16 +139,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.MapMapOfString != null) - hash = hash * 59 + this.MapMapOfString.GetHashCode(); + hashCode = hashCode * 59 + this.MapMapOfString.GetHashCode(); if (this.MapOfEnumString != null) - hash = hash * 59 + this.MapOfEnumString.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.MapOfEnumString.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 17c5460ff139..a878e8867526 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -91,40 +91,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as MixedPropertiesAndAdditionalPropertiesClass); + return this.Equals(input as MixedPropertiesAndAdditionalPropertiesClass); } /// /// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal /// - /// Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared + /// Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared /// Boolean - public bool Equals(MixedPropertiesAndAdditionalPropertiesClass other) + public bool Equals(MixedPropertiesAndAdditionalPropertiesClass input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Uuid == other.Uuid || - this.Uuid != null && - this.Uuid.Equals(other.Uuid) + this.Uuid == input.Uuid || + (this.Uuid != null && + this.Uuid.Equals(input.Uuid)) ) && ( - this.DateTime == other.DateTime || - this.DateTime != null && - this.DateTime.Equals(other.DateTime) + this.DateTime == input.DateTime || + (this.DateTime != null && + this.DateTime.Equals(input.DateTime)) ) && ( - this.Map == other.Map || - this.Map != null && - this.Map.SequenceEqual(other.Map) + this.Map == input.Map || + (this.Map != null && + this.Map.SequenceEqual(input.Map)) ); } @@ -134,18 +132,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Uuid != null) - hash = hash * 59 + this.Uuid.GetHashCode(); + hashCode = hashCode * 59 + this.Uuid.GetHashCode(); if (this.DateTime != null) - hash = hash * 59 + this.DateTime.GetHashCode(); + hashCode = hashCode * 59 + this.DateTime.GetHashCode(); if (this.Map != null) - hash = hash * 59 + this.Map.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Map.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs index dafafde5ae33..91cbb36fe01d 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Model200Response.cs @@ -82,35 +82,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Model200Response); + return this.Equals(input as Model200Response); } /// /// Returns true if Model200Response instances are equal /// - /// Instance of Model200Response to be compared + /// Instance of Model200Response to be compared /// Boolean - public bool Equals(Model200Response other) + public bool Equals(Model200Response input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this._Class == other._Class || - this._Class != null && - this._Class.Equals(other._Class) + this._Class == input._Class || + (this._Class != null && + this._Class.Equals(input._Class)) ); } @@ -120,16 +118,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); + hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this._Class != null) - hash = hash * 59 + this._Class.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Class.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs index 2b5d2c88cba7..a786c496c652 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelClient.cs @@ -73,30 +73,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ModelClient); + return this.Equals(input as ModelClient); } /// /// Returns true if ModelClient instances are equal /// - /// Instance of ModelClient to be compared + /// Instance of ModelClient to be compared /// Boolean - public bool Equals(ModelClient other) + public bool Equals(ModelClient input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Client == other._Client || - this._Client != null && - this._Client.Equals(other._Client) + this._Client == input._Client || + (this._Client != null && + this._Client.Equals(input._Client)) ); } @@ -106,14 +104,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Client != null) - hash = hash * 59 + this._Client.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Client.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelReturn.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelReturn.cs index 80082174d167..1e5804872b91 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelReturn.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ModelReturn.cs @@ -73,30 +73,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ModelReturn); + return this.Equals(input as ModelReturn); } /// /// Returns true if ModelReturn instances are equal /// - /// Instance of ModelReturn to be compared + /// Instance of ModelReturn to be compared /// Boolean - public bool Equals(ModelReturn other) + public bool Equals(ModelReturn input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Return == other._Return || - this._Return != null && - this._Return.Equals(other._Return) + this._Return == input._Return || + (this._Return != null && + this._Return.Equals(input._Return)) ); } @@ -106,14 +104,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Return != null) - hash = hash * 59 + this._Return.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._Return.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Name.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Name.cs index 4240d6bcc81f..f38f5ba70ed4 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Name.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Name.cs @@ -109,45 +109,43 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Name); + return this.Equals(input as Name); } /// /// Returns true if Name instances are equal /// - /// Instance of Name to be compared + /// Instance of Name to be compared /// Boolean - public bool Equals(Name other) + public bool Equals(Name input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this._Name == other._Name || - this._Name != null && - this._Name.Equals(other._Name) + this._Name == input._Name || + (this._Name != null && + this._Name.Equals(input._Name)) ) && ( - this.SnakeCase == other.SnakeCase || - this.SnakeCase != null && - this.SnakeCase.Equals(other.SnakeCase) + this.SnakeCase == input.SnakeCase || + (this.SnakeCase != null && + this.SnakeCase.Equals(input.SnakeCase)) ) && ( - this.Property == other.Property || - this.Property != null && - this.Property.Equals(other.Property) + this.Property == input.Property || + (this.Property != null && + this.Property.Equals(input.Property)) ) && ( - this._123Number == other._123Number || - this._123Number != null && - this._123Number.Equals(other._123Number) + this._123Number == input._123Number || + (this._123Number != null && + this._123Number.Equals(input._123Number)) ); } @@ -157,20 +155,18 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this._Name != null) - hash = hash * 59 + this._Name.GetHashCode(); + hashCode = hashCode * 59 + this._Name.GetHashCode(); if (this.SnakeCase != null) - hash = hash * 59 + this.SnakeCase.GetHashCode(); + hashCode = hashCode * 59 + this.SnakeCase.GetHashCode(); if (this.Property != null) - hash = hash * 59 + this.Property.GetHashCode(); + hashCode = hashCode * 59 + this.Property.GetHashCode(); if (this._123Number != null) - hash = hash * 59 + this._123Number.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this._123Number.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs index 7435470dd5b4..bc50ca2aa7b0 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/NumberOnly.cs @@ -73,30 +73,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as NumberOnly); + return this.Equals(input as NumberOnly); } /// /// Returns true if NumberOnly instances are equal /// - /// Instance of NumberOnly to be compared + /// Instance of NumberOnly to be compared /// Boolean - public bool Equals(NumberOnly other) + public bool Equals(NumberOnly input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.JustNumber == other.JustNumber || - this.JustNumber != null && - this.JustNumber.Equals(other.JustNumber) + this.JustNumber == input.JustNumber || + (this.JustNumber != null && + this.JustNumber.Equals(input.JustNumber)) ); } @@ -106,14 +104,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.JustNumber != null) - hash = hash * 59 + this.JustNumber.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.JustNumber.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs index ba2d8a155d9d..a3dc7eea2e7f 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Order.cs @@ -154,55 +154,53 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Order); + return this.Equals(input as Order); } /// /// Returns true if Order instances are equal /// - /// Instance of Order to be compared + /// Instance of Order to be compared /// Boolean - public bool Equals(Order other) + public bool Equals(Order input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.PetId == other.PetId || - this.PetId != null && - this.PetId.Equals(other.PetId) + this.PetId == input.PetId || + (this.PetId != null && + this.PetId.Equals(input.PetId)) ) && ( - this.Quantity == other.Quantity || - this.Quantity != null && - this.Quantity.Equals(other.Quantity) + this.Quantity == input.Quantity || + (this.Quantity != null && + this.Quantity.Equals(input.Quantity)) ) && ( - this.ShipDate == other.ShipDate || - this.ShipDate != null && - this.ShipDate.Equals(other.ShipDate) + this.ShipDate == input.ShipDate || + (this.ShipDate != null && + this.ShipDate.Equals(input.ShipDate)) ) && ( - this.Status == other.Status || - this.Status != null && - this.Status.Equals(other.Status) + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) ) && ( - this.Complete == other.Complete || - this.Complete != null && - this.Complete.Equals(other.Complete) + this.Complete == input.Complete || + (this.Complete != null && + this.Complete.Equals(input.Complete)) ); } @@ -212,24 +210,22 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.PetId != null) - hash = hash * 59 + this.PetId.GetHashCode(); + hashCode = hashCode * 59 + this.PetId.GetHashCode(); if (this.Quantity != null) - hash = hash * 59 + this.Quantity.GetHashCode(); + hashCode = hashCode * 59 + this.Quantity.GetHashCode(); if (this.ShipDate != null) - hash = hash * 59 + this.ShipDate.GetHashCode(); + hashCode = hashCode * 59 + this.ShipDate.GetHashCode(); if (this.Status != null) - hash = hash * 59 + this.Status.GetHashCode(); + hashCode = hashCode * 59 + this.Status.GetHashCode(); if (this.Complete != null) - hash = hash * 59 + this.Complete.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Complete.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterBoolean.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterBoolean.cs index fb4d7cda4f6a..422b18644776 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterBoolean.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterBoolean.cs @@ -65,23 +65,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterBoolean); + return this.Equals(input as OuterBoolean); } /// /// Returns true if OuterBoolean instances are equal /// - /// Instance of OuterBoolean to be compared + /// Instance of OuterBoolean to be compared /// Boolean - public bool Equals(OuterBoolean other) + public bool Equals(OuterBoolean input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -93,12 +91,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs index 09b29648e02c..4a4deedcf6ee 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterComposite.cs @@ -91,40 +91,38 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterComposite); + return this.Equals(input as OuterComposite); } /// /// Returns true if OuterComposite instances are equal /// - /// Instance of OuterComposite to be compared + /// Instance of OuterComposite to be compared /// Boolean - public bool Equals(OuterComposite other) + public bool Equals(OuterComposite input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.MyNumber == other.MyNumber || - this.MyNumber != null && - this.MyNumber.Equals(other.MyNumber) + this.MyNumber == input.MyNumber || + (this.MyNumber != null && + this.MyNumber.Equals(input.MyNumber)) ) && ( - this.MyString == other.MyString || - this.MyString != null && - this.MyString.Equals(other.MyString) + this.MyString == input.MyString || + (this.MyString != null && + this.MyString.Equals(input.MyString)) ) && ( - this.MyBoolean == other.MyBoolean || - this.MyBoolean != null && - this.MyBoolean.Equals(other.MyBoolean) + this.MyBoolean == input.MyBoolean || + (this.MyBoolean != null && + this.MyBoolean.Equals(input.MyBoolean)) ); } @@ -134,18 +132,16 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.MyNumber != null) - hash = hash * 59 + this.MyNumber.GetHashCode(); + hashCode = hashCode * 59 + this.MyNumber.GetHashCode(); if (this.MyString != null) - hash = hash * 59 + this.MyString.GetHashCode(); + hashCode = hashCode * 59 + this.MyString.GetHashCode(); if (this.MyBoolean != null) - hash = hash * 59 + this.MyBoolean.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.MyBoolean.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterNumber.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterNumber.cs index 3f84f76793a9..275f1fb0988c 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterNumber.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterNumber.cs @@ -65,23 +65,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterNumber); + return this.Equals(input as OuterNumber); } /// /// Returns true if OuterNumber instances are equal /// - /// Instance of OuterNumber to be compared + /// Instance of OuterNumber to be compared /// Boolean - public bool Equals(OuterNumber other) + public bool Equals(OuterNumber input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -93,12 +91,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterString.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterString.cs index 06cc7345edd2..570b8e872fd9 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterString.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/OuterString.cs @@ -65,23 +65,21 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as OuterString); + return this.Equals(input as OuterString); } /// /// Returns true if OuterString instances are equal /// - /// Instance of OuterString to be compared + /// Instance of OuterString to be compared /// Boolean - public bool Equals(OuterString other) + public bool Equals(OuterString input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return false; @@ -93,12 +91,10 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) - return hash; + int hashCode = 41; + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs index 1ff31caea156..e75655053ccf 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Pet.cs @@ -167,55 +167,53 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Pet); + return this.Equals(input as Pet); } /// /// Returns true if Pet instances are equal /// - /// Instance of Pet to be compared + /// Instance of Pet to be compared /// Boolean - public bool Equals(Pet other) + public bool Equals(Pet input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Category == other.Category || - this.Category != null && - this.Category.Equals(other.Category) + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) ) && ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this.PhotoUrls == other.PhotoUrls || - this.PhotoUrls != null && - this.PhotoUrls.SequenceEqual(other.PhotoUrls) + this.PhotoUrls == input.PhotoUrls || + (this.PhotoUrls != null && + this.PhotoUrls.SequenceEqual(input.PhotoUrls)) ) && ( - this.Tags == other.Tags || - this.Tags != null && - this.Tags.SequenceEqual(other.Tags) + this.Tags == input.Tags || + (this.Tags != null && + this.Tags.SequenceEqual(input.Tags)) ) && ( - this.Status == other.Status || - this.Status != null && - this.Status.Equals(other.Status) + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) ); } @@ -225,24 +223,22 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Category != null) - hash = hash * 59 + this.Category.GetHashCode(); + hashCode = hashCode * 59 + this.Category.GetHashCode(); if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); + hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.PhotoUrls != null) - hash = hash * 59 + this.PhotoUrls.GetHashCode(); + hashCode = hashCode * 59 + this.PhotoUrls.GetHashCode(); if (this.Tags != null) - hash = hash * 59 + this.Tags.GetHashCode(); + hashCode = hashCode * 59 + this.Tags.GetHashCode(); if (this.Status != null) - hash = hash * 59 + this.Status.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs index 834a6bf1513a..74d416fc8c8b 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/ReadOnlyFirst.cs @@ -80,35 +80,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as ReadOnlyFirst); + return this.Equals(input as ReadOnlyFirst); } /// /// Returns true if ReadOnlyFirst instances are equal /// - /// Instance of ReadOnlyFirst to be compared + /// Instance of ReadOnlyFirst to be compared /// Boolean - public bool Equals(ReadOnlyFirst other) + public bool Equals(ReadOnlyFirst input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Bar == other.Bar || - this.Bar != null && - this.Bar.Equals(other.Bar) + this.Bar == input.Bar || + (this.Bar != null && + this.Bar.Equals(input.Bar)) ) && ( - this.Baz == other.Baz || - this.Baz != null && - this.Baz.Equals(other.Baz) + this.Baz == input.Baz || + (this.Baz != null && + this.Baz.Equals(input.Baz)) ); } @@ -118,16 +116,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Bar != null) - hash = hash * 59 + this.Bar.GetHashCode(); + hashCode = hashCode * 59 + this.Bar.GetHashCode(); if (this.Baz != null) - hash = hash * 59 + this.Baz.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Baz.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/SpecialModelName.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/SpecialModelName.cs index aa94336ff824..8de756415446 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/SpecialModelName.cs @@ -73,30 +73,28 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as SpecialModelName); + return this.Equals(input as SpecialModelName); } /// /// Returns true if SpecialModelName instances are equal /// - /// Instance of SpecialModelName to be compared + /// Instance of SpecialModelName to be compared /// Boolean - public bool Equals(SpecialModelName other) + public bool Equals(SpecialModelName input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.SpecialPropertyName == other.SpecialPropertyName || - this.SpecialPropertyName != null && - this.SpecialPropertyName.Equals(other.SpecialPropertyName) + this.SpecialPropertyName == input.SpecialPropertyName || + (this.SpecialPropertyName != null && + this.SpecialPropertyName.Equals(input.SpecialPropertyName)) ); } @@ -106,14 +104,12 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.SpecialPropertyName != null) - hash = hash * 59 + this.SpecialPropertyName.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs index ef41323c89d0..632a7558bcc9 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/Tag.cs @@ -82,35 +82,33 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as Tag); + return this.Equals(input as Tag); } /// /// Returns true if Tag instances are equal /// - /// Instance of Tag to be compared + /// Instance of Tag to be compared /// Boolean - public bool Equals(Tag other) + public bool Equals(Tag input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Name == other.Name || - this.Name != null && - this.Name.Equals(other.Name) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ); } @@ -120,16 +118,14 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Name != null) - hash = hash * 59 + this.Name.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs index 5a2578a8e9e2..2aa51053e4ff 100644 --- a/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs +++ b/samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/User.cs @@ -137,65 +137,63 @@ namespace IO.Swagger.Model /// /// Returns true if objects are equal /// - /// Object to be compared + /// Object to be compared /// Boolean - public override bool Equals(object obj) + public override bool Equals(object input) { - // credit: http://stackoverflow.com/a/10454552/677735 - return this.Equals(obj as User); + return this.Equals(input as User); } /// /// Returns true if User instances are equal /// - /// Instance of User to be compared + /// Instance of User to be compared /// Boolean - public bool Equals(User other) + public bool Equals(User input) { - // credit: http://stackoverflow.com/a/10454552/677735 - if (other == null) + if (input == null) return false; return ( - this.Id == other.Id || - this.Id != null && - this.Id.Equals(other.Id) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Username == other.Username || - this.Username != null && - this.Username.Equals(other.Username) + this.Username == input.Username || + (this.Username != null && + this.Username.Equals(input.Username)) ) && ( - this.FirstName == other.FirstName || - this.FirstName != null && - this.FirstName.Equals(other.FirstName) + this.FirstName == input.FirstName || + (this.FirstName != null && + this.FirstName.Equals(input.FirstName)) ) && ( - this.LastName == other.LastName || - this.LastName != null && - this.LastName.Equals(other.LastName) + this.LastName == input.LastName || + (this.LastName != null && + this.LastName.Equals(input.LastName)) ) && ( - this.Email == other.Email || - this.Email != null && - this.Email.Equals(other.Email) + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) ) && ( - this.Password == other.Password || - this.Password != null && - this.Password.Equals(other.Password) + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) ) && ( - this.Phone == other.Phone || - this.Phone != null && - this.Phone.Equals(other.Phone) + this.Phone == input.Phone || + (this.Phone != null && + this.Phone.Equals(input.Phone)) ) && ( - this.UserStatus == other.UserStatus || - this.UserStatus != null && - this.UserStatus.Equals(other.UserStatus) + this.UserStatus == input.UserStatus || + (this.UserStatus != null && + this.UserStatus.Equals(input.UserStatus)) ); } @@ -205,28 +203,26 @@ namespace IO.Swagger.Model /// Hash code public override int GetHashCode() { - // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { - int hash = 41; - // Suitable nullity checks etc, of course :) + int hashCode = 41; if (this.Id != null) - hash = hash * 59 + this.Id.GetHashCode(); + hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Username != null) - hash = hash * 59 + this.Username.GetHashCode(); + hashCode = hashCode * 59 + this.Username.GetHashCode(); if (this.FirstName != null) - hash = hash * 59 + this.FirstName.GetHashCode(); + hashCode = hashCode * 59 + this.FirstName.GetHashCode(); if (this.LastName != null) - hash = hash * 59 + this.LastName.GetHashCode(); + hashCode = hashCode * 59 + this.LastName.GetHashCode(); if (this.Email != null) - hash = hash * 59 + this.Email.GetHashCode(); + hashCode = hashCode * 59 + this.Email.GetHashCode(); if (this.Password != null) - hash = hash * 59 + this.Password.GetHashCode(); + hashCode = hashCode * 59 + this.Password.GetHashCode(); if (this.Phone != null) - hash = hash * 59 + this.Phone.GetHashCode(); + hashCode = hashCode * 59 + this.Phone.GetHashCode(); if (this.UserStatus != null) - hash = hash * 59 + this.UserStatus.GetHashCode(); - return hash; + hashCode = hashCode * 59 + this.UserStatus.GetHashCode(); + return hashCode; } } diff --git a/samples/client/petstore/python/README.md b/samples/client/petstore/python/README.md index 2395497d6821..b24dd99dfc71 100644 --- a/samples/client/petstore/python/README.md +++ b/samples/client/petstore/python/README.md @@ -148,6 +148,12 @@ Class | Method | HTTP request | Description - **API key parameter name**: api_key - **Location**: HTTP header +## api_key_query + +- **Type**: API key +- **API key parameter name**: api_key_query +- **Location**: URL query string + ## http_basic_test - **Type**: HTTP basic authentication diff --git a/samples/client/petstore/python/docs/FakeClassnameTags123Api.md b/samples/client/petstore/python/docs/FakeClassnameTags123Api.md index de281a3b29a6..a103a4ee3276 100644 --- a/samples/client/petstore/python/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/python/docs/FakeClassnameTags123Api.md @@ -20,8 +20,14 @@ import petstore_api from petstore_api.rest import ApiException from pprint import pprint +# Configure API key authorization: api_key_query +configuration = petstore_api.Configuration() +configuration.api_key['api_key_query'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api_key_query'] = 'Bearer' + # create an instance of the API class -api_instance = petstore_api.FakeClassnameTags123Api() +api_instance = petstore_api.FakeClassnameTags123Api(petstore_api.ApiClient(configuration)) body = petstore_api.Client() # Client | client model try: @@ -44,7 +50,7 @@ Name | Type | Description | Notes ### Authorization -No authorization required +[api_key_query](../README.md#api_key_query) ### HTTP request headers diff --git a/samples/client/petstore/python/petstore_api/apis/fake_classname_tags_123_api.py b/samples/client/petstore/python/petstore_api/apis/fake_classname_tags_123_api.py index 5c1b91139d72..da75ad3cccdd 100644 --- a/samples/client/petstore/python/petstore_api/apis/fake_classname_tags_123_api.py +++ b/samples/client/petstore/python/petstore_api/apis/fake_classname_tags_123_api.py @@ -114,7 +114,7 @@ class FakeClassnameTags123Api(object): select_header_content_type(['application/json']) # Authentication setting - auth_settings = [] + auth_settings = ['api_key_query'] return self.api_client.call_api('/fake_classname_test', 'PATCH', path_params, diff --git a/samples/client/petstore/python/petstore_api/configuration.py b/samples/client/petstore/python/petstore_api/configuration.py index 2e190c96ad8f..eed041d0211b 100644 --- a/samples/client/petstore/python/petstore_api/configuration.py +++ b/samples/client/petstore/python/petstore_api/configuration.py @@ -204,6 +204,13 @@ class Configuration(object): 'key': 'api_key', 'value': self.get_api_key_with_prefix('api_key') }, + 'api_key_query': + { + 'type': 'api_key', + 'in': 'query', + 'key': 'api_key_query', + 'value': self.get_api_key_with_prefix('api_key_query') + }, 'http_basic_test': { 'type': 'basic', diff --git a/samples/client/petstore/python/petstore_api/rest.py b/samples/client/petstore/python/petstore_api/rest.py index cc3c36c05ba6..727c94241141 100644 --- a/samples/client/petstore/python/petstore_api/rest.py +++ b/samples/client/petstore/python/petstore_api/rest.py @@ -61,8 +61,7 @@ class RESTClientObject(object): # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # maxsize is the number of requests to host that are allowed in parallel - # ca_certs vs cert_file vs key_file - # http://stackoverflow.com/a/23957365/2985775 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # cert_reqs if configuration.verify_ssl: diff --git a/samples/html2/.swagger-codegen/VERSION b/samples/html2/.swagger-codegen/VERSION index 7fea99011a6f..f9f7450d1359 100644 --- a/samples/html2/.swagger-codegen/VERSION +++ b/samples/html2/.swagger-codegen/VERSION @@ -1 +1 @@ -2.2.3-SNAPSHOT \ No newline at end of file +2.3.0-SNAPSHOT \ No newline at end of file diff --git a/samples/html2/index.html b/samples/html2/index.html index 0fedba1c4a37..baaedea87213 100644 --- a/samples/html2/index.html +++ b/samples/html2/index.html @@ -7873,7 +7873,7 @@ return /******/ (function(modules) { // webpackBootstrap var sourceMap = obj.sourceMap; if(sourceMap) { - // http://stackoverflow.com/a/26603875 + // https://developer.mozilla.org/en/docs/Web/API/WindowBase64/Base64_encoding_and_decoding css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */"; } @@ -7895,13 +7895,13 @@ return /******/ (function(modules) { // webpackBootstrap "use strict"; /* * Escapes `"` charachters from string - */ + */ function escapeString(str) { return str.replace('"', '\"'); } /* * Determines if a value is an object - */ + */ function isObject(value) { var type = typeof value; return !!value && (type == 'object'); @@ -7909,32 +7909,27 @@ return /******/ (function(modules) { // webpackBootstrap exports.isObject = isObject; /* * Gets constructor name of an object. - * From http://stackoverflow.com/a/332429 * - */ + */ function getObjectName(object) { if (object === undefined) { return ''; } - if (object === null) { - return 'Object'; - } - if (typeof object === 'object' && !object.constructor) { + if (object === null || (typeof object === 'object' && !object.constructor)) { return 'Object'; } var funcNameRegex = /function ([^(]*)/; var results = (funcNameRegex).exec((object).constructor.toString()); if (results && results.length > 1) { return results[1]; - } - else { + } else { return ''; } } exports.getObjectName = getObjectName; /* * Gets type of an object. Returns "null" for null objects - */ + */ function getType(object) { if (object === null) { return 'null'; @@ -8014,6 +8009,7 @@ return /******/ (function(modules) { // webpackBootstrap //# sourceMappingURL=json-formatter.js.map +