forked from loafle/openapi-generator-original
remove ref to SO (#6209)
This commit is contained in:
@@ -283,13 +283,12 @@ namespace {{packageName}}.Client
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dynamically cast the object into target type.
|
/// Dynamically cast the object into target type.
|
||||||
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">Object to be casted</param>
|
/// <param name="fromObject">Object to be casted</param>
|
||||||
/// <param name="dest">Target type</param>
|
/// <param name="toObject">Target type</param>
|
||||||
/// <returns>Casted object</returns>
|
/// <returns>Casted object</returns>
|
||||||
public static Object ConvertType(Object source, Type dest) {
|
public static Object ConvertType(Object fromObject, Type toObject) {
|
||||||
return Convert.ChangeType(source, dest);
|
return Convert.ChangeType(fromObject, toObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,16 +105,15 @@ namespace {{packageName}}.Models
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
var hash = 41;
|
var hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
// Suitable nullity checks etc, of course :)
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
if ({{name}} != null)
|
if ({{name}} != null)
|
||||||
hash = hash * 59 + {{name}}.GetHashCode();
|
hashCode = hashCode * 59 + {{name}}.GetHashCode();
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -447,31 +447,34 @@ namespace {{packageName}}.Client
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dynamically cast the object into target type.
|
/// Dynamically cast the object into target type.
|
||||||
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">Object to be casted</param>
|
/// <param name="fromObject">Object to be casted</param>
|
||||||
/// <param name="dest">Target type</param>
|
/// <param name="toObject">Target type</param>
|
||||||
/// <returns>Casted object</returns>
|
/// <returns>Casted object</returns>
|
||||||
{{#supportsAsync}}public static dynamic ConvertType(dynamic source, Type dest){{/supportsAsync}}{{^supportsAsync}}public static object ConvertType<T>(T source, Type dest) where T : class{{/supportsAsync}}
|
{{#supportsAsync}}
|
||||||
|
public static dynamic ConvertType(dynamic fromObject, Type toObject)
|
||||||
|
{{/supportsAsync}}
|
||||||
|
{{^supportsAsync}}
|
||||||
|
public static object ConvertType<T>(T fromObject, Type toObject) where T : class
|
||||||
|
{{/supportsAsync}}
|
||||||
{
|
{
|
||||||
return Convert.ChangeType(source, dest);
|
return Convert.ChangeType(fromObject, toObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert stream to byte array
|
/// Convert stream to byte array
|
||||||
/// Credit/Ref: http://stackoverflow.com/a/221941/677735
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input">Input stream to be converted</param>
|
/// <param name="inputStream">Input stream to be converted</param>
|
||||||
/// <returns>Byte array</returns>
|
/// <returns>Byte array</returns>
|
||||||
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())
|
using (MemoryStream ms = new MemoryStream())
|
||||||
{
|
{
|
||||||
int read;
|
int count;
|
||||||
while ((read = input.Read(buffer, 0, buffer.Length)) > 0)
|
while ((count = inputStream.Read(buf, 0, buf.Length)) > 0)
|
||||||
{
|
{
|
||||||
ms.Write(buffer, 0, read);
|
ms.Write(buf, 0, count);
|
||||||
}
|
}
|
||||||
return ms.ToArray();
|
return ms.ToArray();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,35 +126,33 @@ this.{{name}} = {{name}};
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as {{classname}});
|
||||||
return this.Equals(obj as {{classname}});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if {{classname}} instances are equal
|
/// Returns true if {{classname}} instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of {{classname}} to be compared</param>
|
/// <param name="input">Instance of {{classname}} to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals({{classname}} other)
|
public bool Equals({{classname}} input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return {{#vars}}{{#isNotContainer}}
|
return {{#vars}}{{#isNotContainer}}
|
||||||
(
|
(
|
||||||
this.{{name}} == other.{{name}} ||
|
this.{{name}} == input.{{name}} ||
|
||||||
this.{{name}} != null &&
|
(this.{{name}} != null &&
|
||||||
this.{{name}}.Equals(other.{{name}})
|
this.{{name}}.Equals(input.{{name}}))
|
||||||
){{#hasMore}} && {{/hasMore}}{{/isNotContainer}}{{^isNotContainer}}
|
){{#hasMore}} && {{/hasMore}}{{/isNotContainer}}{{^isNotContainer}}
|
||||||
(
|
(
|
||||||
this.{{name}} == other.{{name}} ||
|
this.{{name}} == input.{{name}} ||
|
||||||
this.{{name}} != null &&
|
(this.{{name}} != null &&
|
||||||
this.{{name}}.SequenceEqual(other.{{name}})
|
this.{{name}}.SequenceEqual(input.{{name}}))
|
||||||
){{#hasMore}} && {{/hasMore}}{{/isNotContainer}}{{/vars}}{{^vars}}false{{/vars}};
|
){{#hasMore}} && {{/hasMore}}{{/isNotContainer}}{{/vars}}{{^vars}}false{{/vars}};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,16 +162,14 @@ this.{{name}} = {{name}};
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
if (this.{{name}} != null)
|
if (this.{{name}} != null)
|
||||||
hash = hash * 59 + this.{{name}}.GetHashCode();
|
hashCode = hashCode * 59 + this.{{name}}.GetHashCode();
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{^netStandard}}
|
{{^netStandard}}
|
||||||
|
|||||||
@@ -825,7 +825,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
var sourceMap = obj.sourceMap;
|
var sourceMap = obj.sourceMap;
|
||||||
|
|
||||||
if(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)))) + " */";
|
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -847,13 +847,13 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
"use strict";
|
"use strict";
|
||||||
/*
|
/*
|
||||||
* Escapes `"` charachters from string
|
* Escapes `"` charachters from string
|
||||||
*/
|
*/
|
||||||
function escapeString(str) {
|
function escapeString(str) {
|
||||||
return str.replace('"', '\"');
|
return str.replace('"', '\"');
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Determines if a value is an object
|
* Determines if a value is an object
|
||||||
*/
|
*/
|
||||||
function isObject(value) {
|
function isObject(value) {
|
||||||
var type = typeof value;
|
var type = typeof value;
|
||||||
return !!value && (type == 'object');
|
return !!value && (type == 'object');
|
||||||
@@ -861,32 +861,27 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
exports.isObject = isObject;
|
exports.isObject = isObject;
|
||||||
/*
|
/*
|
||||||
* Gets constructor name of an object.
|
* Gets constructor name of an object.
|
||||||
* From http://stackoverflow.com/a/332429
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function getObjectName(object) {
|
function getObjectName(object) {
|
||||||
if (object === undefined) {
|
if (object === undefined) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
if (object === null) {
|
if (object === null || (typeof object === 'object' && !object.constructor)) {
|
||||||
return 'Object';
|
|
||||||
}
|
|
||||||
if (typeof object === 'object' && !object.constructor) {
|
|
||||||
return 'Object';
|
return 'Object';
|
||||||
}
|
}
|
||||||
var funcNameRegex = /function ([^(]*)/;
|
var funcNameRegex = /function ([^(]*)/;
|
||||||
var results = (funcNameRegex).exec((object).constructor.toString());
|
var results = (funcNameRegex).exec((object).constructor.toString());
|
||||||
if (results && results.length > 1) {
|
if (results && results.length > 1) {
|
||||||
return results[1];
|
return results[1];
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.getObjectName = getObjectName;
|
exports.getObjectName = getObjectName;
|
||||||
/*
|
/*
|
||||||
* Gets type of an object. Returns "null" for null objects
|
* Gets type of an object. Returns "null" for null objects
|
||||||
*/
|
*/
|
||||||
function getType(object) {
|
function getType(object) {
|
||||||
if (object === null) {
|
if (object === null) {
|
||||||
return 'null';
|
return 'null';
|
||||||
@@ -965,4 +960,4 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
;
|
;
|
||||||
//# sourceMappingURL=json-formatter.js.map
|
//# sourceMappingURL=json-formatter.js.map
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -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/poolmanager.py#L75
|
||||||
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680
|
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680
|
||||||
# maxsize is the number of requests to host that are allowed in parallel
|
# maxsize is the number of requests to host that are allowed in parallel
|
||||||
# ca_certs vs cert_file vs key_file
|
# Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html
|
||||||
# http://stackoverflow.com/a/23957365/2985775
|
|
||||||
|
|
||||||
# cert_reqs
|
# cert_reqs
|
||||||
if configuration.verify_ssl:
|
if configuration.verify_ssl:
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
2.2.3-SNAPSHOT
|
2.3.0-SNAPSHOT
|
||||||
@@ -285,13 +285,12 @@ namespace IO.Swagger.Client
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dynamically cast the object into target type.
|
/// Dynamically cast the object into target type.
|
||||||
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">Object to be casted</param>
|
/// <param name="fromObject">Object to be casted</param>
|
||||||
/// <param name="dest">Target type</param>
|
/// <param name="toObject">Target type</param>
|
||||||
/// <returns>Casted object</returns>
|
/// <returns>Casted object</returns>
|
||||||
public static Object ConvertType(Object source, Type dest) {
|
public static Object ConvertType(Object fromObject, Type toObject) {
|
||||||
return Convert.ChangeType(source, dest);
|
return Convert.ChangeType(fromObject, toObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -399,31 +399,29 @@ namespace IO.Swagger.Client
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dynamically cast the object into target type.
|
/// Dynamically cast the object into target type.
|
||||||
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">Object to be casted</param>
|
/// <param name="fromObject">Object to be casted</param>
|
||||||
/// <param name="dest">Target type</param>
|
/// <param name="toObject">Target type</param>
|
||||||
/// <returns>Casted object</returns>
|
/// <returns>Casted object</returns>
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert stream to byte array
|
/// Convert stream to byte array
|
||||||
/// Credit/Ref: http://stackoverflow.com/a/221941/677735
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input">Input stream to be converted</param>
|
/// <param name="inputStream">Input stream to be converted</param>
|
||||||
/// <returns>Byte array</returns>
|
/// <returns>Byte array</returns>
|
||||||
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())
|
using (MemoryStream ms = new MemoryStream())
|
||||||
{
|
{
|
||||||
int read;
|
int count;
|
||||||
while ((read = input.Read(buffer, 0, buffer.Length)) > 0)
|
while ((count = inputStream.Read(buf, 0, buf.Length)) > 0)
|
||||||
{
|
{
|
||||||
ms.Write(buffer, 0, read);
|
ms.Write(buf, 0, count);
|
||||||
}
|
}
|
||||||
return ms.ToArray();
|
return ms.ToArray();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,35 +79,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as AdditionalPropertiesClass);
|
||||||
return this.Equals(obj as AdditionalPropertiesClass);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if AdditionalPropertiesClass instances are equal
|
/// Returns true if AdditionalPropertiesClass instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of AdditionalPropertiesClass to be compared</param>
|
/// <param name="input">Instance of AdditionalPropertiesClass to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(AdditionalPropertiesClass other)
|
public bool Equals(AdditionalPropertiesClass input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.MapProperty == other.MapProperty ||
|
this.MapProperty == input.MapProperty ||
|
||||||
this.MapProperty != null &&
|
(this.MapProperty != null &&
|
||||||
this.MapProperty.SequenceEqual(other.MapProperty)
|
this.MapProperty.SequenceEqual(input.MapProperty))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MapOfMapProperty == other.MapOfMapProperty ||
|
this.MapOfMapProperty == input.MapOfMapProperty ||
|
||||||
this.MapOfMapProperty != null &&
|
(this.MapOfMapProperty != null &&
|
||||||
this.MapOfMapProperty.SequenceEqual(other.MapOfMapProperty)
|
this.MapOfMapProperty.SequenceEqual(input.MapOfMapProperty))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,16 +115,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.MapProperty != null)
|
if (this.MapProperty != null)
|
||||||
hash = hash * 59 + this.MapProperty.GetHashCode();
|
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||||
if (this.MapOfMapProperty != null)
|
if (this.MapOfMapProperty != null)
|
||||||
hash = hash * 59 + this.MapOfMapProperty.GetHashCode();
|
hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,35 +100,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Animal);
|
||||||
return this.Equals(obj as Animal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Animal instances are equal
|
/// Returns true if Animal instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Animal to be compared</param>
|
/// <param name="input">Instance of Animal to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Animal other)
|
public bool Equals(Animal input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ClassName == other.ClassName ||
|
this.ClassName == input.ClassName ||
|
||||||
this.ClassName != null &&
|
(this.ClassName != null &&
|
||||||
this.ClassName.Equals(other.ClassName)
|
this.ClassName.Equals(input.ClassName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Color == other.Color ||
|
this.Color == input.Color ||
|
||||||
this.Color != null &&
|
(this.Color != null &&
|
||||||
this.Color.Equals(other.Color)
|
this.Color.Equals(input.Color))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,16 +136,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||||
if (this.Color != null)
|
if (this.Color != null)
|
||||||
hash = hash * 59 + this.Color.GetHashCode();
|
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,23 +62,21 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as AnimalFarm);
|
||||||
return this.Equals(obj as AnimalFarm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if AnimalFarm instances are equal
|
/// Returns true if AnimalFarm instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of AnimalFarm to be compared</param>
|
/// <param name="input">Instance of AnimalFarm to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(AnimalFarm other)
|
public bool Equals(AnimalFarm input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -90,12 +88,10 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
return hashCode;
|
||||||
return hash;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,40 +88,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ApiResponse);
|
||||||
return this.Equals(obj as ApiResponse);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ApiResponse instances are equal
|
/// Returns true if ApiResponse instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ApiResponse to be compared</param>
|
/// <param name="input">Instance of ApiResponse to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ApiResponse other)
|
public bool Equals(ApiResponse input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Code == other.Code ||
|
this.Code == input.Code ||
|
||||||
this.Code != null &&
|
(this.Code != null &&
|
||||||
this.Code.Equals(other.Code)
|
this.Code.Equals(input.Code))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Type == other.Type ||
|
this.Type == input.Type ||
|
||||||
this.Type != null &&
|
(this.Type != null &&
|
||||||
this.Type.Equals(other.Type)
|
this.Type.Equals(input.Type))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Message == other.Message ||
|
this.Message == input.Message ||
|
||||||
this.Message != null &&
|
(this.Message != null &&
|
||||||
this.Message.Equals(other.Message)
|
this.Message.Equals(input.Message))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,18 +129,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Code != null)
|
if (this.Code != null)
|
||||||
hash = hash * 59 + this.Code.GetHashCode();
|
hashCode = hashCode * 59 + this.Code.GetHashCode();
|
||||||
if (this.Type != null)
|
if (this.Type != null)
|
||||||
hash = hash * 59 + this.Type.GetHashCode();
|
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||||
if (this.Message != null)
|
if (this.Message != null)
|
||||||
hash = hash * 59 + this.Message.GetHashCode();
|
hashCode = hashCode * 59 + this.Message.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,30 +70,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ArrayOfArrayOfNumberOnly);
|
||||||
return this.Equals(obj as ArrayOfArrayOfNumberOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ArrayOfArrayOfNumberOnly instances are equal
|
/// Returns true if ArrayOfArrayOfNumberOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ArrayOfArrayOfNumberOnly to be compared</param>
|
/// <param name="input">Instance of ArrayOfArrayOfNumberOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ArrayOfArrayOfNumberOnly other)
|
public bool Equals(ArrayOfArrayOfNumberOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ArrayArrayNumber == other.ArrayArrayNumber ||
|
this.ArrayArrayNumber == input.ArrayArrayNumber ||
|
||||||
this.ArrayArrayNumber != null &&
|
(this.ArrayArrayNumber != null &&
|
||||||
this.ArrayArrayNumber.SequenceEqual(other.ArrayArrayNumber)
|
this.ArrayArrayNumber.SequenceEqual(input.ArrayArrayNumber))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,14 +101,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ArrayArrayNumber != null)
|
if (this.ArrayArrayNumber != null)
|
||||||
hash = hash * 59 + this.ArrayArrayNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,30 +70,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ArrayOfNumberOnly);
|
||||||
return this.Equals(obj as ArrayOfNumberOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ArrayOfNumberOnly instances are equal
|
/// Returns true if ArrayOfNumberOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ArrayOfNumberOnly to be compared</param>
|
/// <param name="input">Instance of ArrayOfNumberOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ArrayOfNumberOnly other)
|
public bool Equals(ArrayOfNumberOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ArrayNumber == other.ArrayNumber ||
|
this.ArrayNumber == input.ArrayNumber ||
|
||||||
this.ArrayNumber != null &&
|
(this.ArrayNumber != null &&
|
||||||
this.ArrayNumber.SequenceEqual(other.ArrayNumber)
|
this.ArrayNumber.SequenceEqual(input.ArrayNumber))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,14 +101,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ArrayNumber != null)
|
if (this.ArrayNumber != null)
|
||||||
hash = hash * 59 + this.ArrayNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,40 +88,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ArrayTest);
|
||||||
return this.Equals(obj as ArrayTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ArrayTest instances are equal
|
/// Returns true if ArrayTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ArrayTest to be compared</param>
|
/// <param name="input">Instance of ArrayTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ArrayTest other)
|
public bool Equals(ArrayTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ArrayOfString == other.ArrayOfString ||
|
this.ArrayOfString == input.ArrayOfString ||
|
||||||
this.ArrayOfString != null &&
|
(this.ArrayOfString != null &&
|
||||||
this.ArrayOfString.SequenceEqual(other.ArrayOfString)
|
this.ArrayOfString.SequenceEqual(input.ArrayOfString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ArrayArrayOfInteger == other.ArrayArrayOfInteger ||
|
this.ArrayArrayOfInteger == input.ArrayArrayOfInteger ||
|
||||||
this.ArrayArrayOfInteger != null &&
|
(this.ArrayArrayOfInteger != null &&
|
||||||
this.ArrayArrayOfInteger.SequenceEqual(other.ArrayArrayOfInteger)
|
this.ArrayArrayOfInteger.SequenceEqual(input.ArrayArrayOfInteger))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ArrayArrayOfModel == other.ArrayArrayOfModel ||
|
this.ArrayArrayOfModel == input.ArrayArrayOfModel ||
|
||||||
this.ArrayArrayOfModel != null &&
|
(this.ArrayArrayOfModel != null &&
|
||||||
this.ArrayArrayOfModel.SequenceEqual(other.ArrayArrayOfModel)
|
this.ArrayArrayOfModel.SequenceEqual(input.ArrayArrayOfModel))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,18 +129,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ArrayOfString != null)
|
if (this.ArrayOfString != null)
|
||||||
hash = hash * 59 + this.ArrayOfString.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode();
|
||||||
if (this.ArrayArrayOfInteger != null)
|
if (this.ArrayArrayOfInteger != null)
|
||||||
hash = hash * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
||||||
if (this.ArrayArrayOfModel != null)
|
if (this.ArrayArrayOfModel != null)
|
||||||
hash = hash * 59 + this.ArrayArrayOfModel.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,55 +116,53 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Capitalization);
|
||||||
return this.Equals(obj as Capitalization);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Capitalization instances are equal
|
/// Returns true if Capitalization instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Capitalization to be compared</param>
|
/// <param name="input">Instance of Capitalization to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Capitalization other)
|
public bool Equals(Capitalization input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.SmallCamel == other.SmallCamel ||
|
this.SmallCamel == input.SmallCamel ||
|
||||||
this.SmallCamel != null &&
|
(this.SmallCamel != null &&
|
||||||
this.SmallCamel.Equals(other.SmallCamel)
|
this.SmallCamel.Equals(input.SmallCamel))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.CapitalCamel == other.CapitalCamel ||
|
this.CapitalCamel == input.CapitalCamel ||
|
||||||
this.CapitalCamel != null &&
|
(this.CapitalCamel != null &&
|
||||||
this.CapitalCamel.Equals(other.CapitalCamel)
|
this.CapitalCamel.Equals(input.CapitalCamel))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.SmallSnake == other.SmallSnake ||
|
this.SmallSnake == input.SmallSnake ||
|
||||||
this.SmallSnake != null &&
|
(this.SmallSnake != null &&
|
||||||
this.SmallSnake.Equals(other.SmallSnake)
|
this.SmallSnake.Equals(input.SmallSnake))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.CapitalSnake == other.CapitalSnake ||
|
this.CapitalSnake == input.CapitalSnake ||
|
||||||
this.CapitalSnake != null &&
|
(this.CapitalSnake != null &&
|
||||||
this.CapitalSnake.Equals(other.CapitalSnake)
|
this.CapitalSnake.Equals(input.CapitalSnake))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.SCAETHFlowPoints == other.SCAETHFlowPoints ||
|
this.SCAETHFlowPoints == input.SCAETHFlowPoints ||
|
||||||
this.SCAETHFlowPoints != null &&
|
(this.SCAETHFlowPoints != null &&
|
||||||
this.SCAETHFlowPoints.Equals(other.SCAETHFlowPoints)
|
this.SCAETHFlowPoints.Equals(input.SCAETHFlowPoints))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ATT_NAME == other.ATT_NAME ||
|
this.ATT_NAME == input.ATT_NAME ||
|
||||||
this.ATT_NAME != null &&
|
(this.ATT_NAME != null &&
|
||||||
this.ATT_NAME.Equals(other.ATT_NAME)
|
this.ATT_NAME.Equals(input.ATT_NAME))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,24 +172,22 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.SmallCamel != null)
|
if (this.SmallCamel != null)
|
||||||
hash = hash * 59 + this.SmallCamel.GetHashCode();
|
hashCode = hashCode * 59 + this.SmallCamel.GetHashCode();
|
||||||
if (this.CapitalCamel != null)
|
if (this.CapitalCamel != null)
|
||||||
hash = hash * 59 + this.CapitalCamel.GetHashCode();
|
hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode();
|
||||||
if (this.SmallSnake != null)
|
if (this.SmallSnake != null)
|
||||||
hash = hash * 59 + this.SmallSnake.GetHashCode();
|
hashCode = hashCode * 59 + this.SmallSnake.GetHashCode();
|
||||||
if (this.CapitalSnake != null)
|
if (this.CapitalSnake != null)
|
||||||
hash = hash * 59 + this.CapitalSnake.GetHashCode();
|
hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode();
|
||||||
if (this.SCAETHFlowPoints != null)
|
if (this.SCAETHFlowPoints != null)
|
||||||
hash = hash * 59 + this.SCAETHFlowPoints.GetHashCode();
|
hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode();
|
||||||
if (this.ATT_NAME != null)
|
if (this.ATT_NAME != null)
|
||||||
hash = hash * 59 + this.ATT_NAME.GetHashCode();
|
hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,40 +109,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Cat);
|
||||||
return this.Equals(obj as Cat);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Cat instances are equal
|
/// Returns true if Cat instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Cat to be compared</param>
|
/// <param name="input">Instance of Cat to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Cat other)
|
public bool Equals(Cat input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ClassName == other.ClassName ||
|
this.ClassName == input.ClassName ||
|
||||||
this.ClassName != null &&
|
(this.ClassName != null &&
|
||||||
this.ClassName.Equals(other.ClassName)
|
this.ClassName.Equals(input.ClassName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Color == other.Color ||
|
this.Color == input.Color ||
|
||||||
this.Color != null &&
|
(this.Color != null &&
|
||||||
this.Color.Equals(other.Color)
|
this.Color.Equals(input.Color))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Declawed == other.Declawed ||
|
this.Declawed == input.Declawed ||
|
||||||
this.Declawed != null &&
|
(this.Declawed != null &&
|
||||||
this.Declawed.Equals(other.Declawed)
|
this.Declawed.Equals(input.Declawed))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,18 +150,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||||
if (this.Color != null)
|
if (this.Color != null)
|
||||||
hash = hash * 59 + this.Color.GetHashCode();
|
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||||
if (this.Declawed != null)
|
if (this.Declawed != null)
|
||||||
hash = hash * 59 + this.Declawed.GetHashCode();
|
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,35 +79,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Category);
|
||||||
return this.Equals(obj as Category);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Category instances are equal
|
/// Returns true if Category instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Category to be compared</param>
|
/// <param name="input">Instance of Category to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Category other)
|
public bool Equals(Category input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,16 +115,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,30 +70,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ClassModel);
|
||||||
return this.Equals(obj as ClassModel);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ClassModel instances are equal
|
/// Returns true if ClassModel instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ClassModel to be compared</param>
|
/// <param name="input">Instance of ClassModel to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ClassModel other)
|
public bool Equals(ClassModel input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Class == other._Class ||
|
this._Class == input._Class ||
|
||||||
this._Class != null &&
|
(this._Class != null &&
|
||||||
this._Class.Equals(other._Class)
|
this._Class.Equals(input._Class))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,14 +101,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Class != null)
|
if (this._Class != null)
|
||||||
hash = hash * 59 + this._Class.GetHashCode();
|
hashCode = hashCode * 59 + this._Class.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,40 +109,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Dog);
|
||||||
return this.Equals(obj as Dog);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Dog instances are equal
|
/// Returns true if Dog instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Dog to be compared</param>
|
/// <param name="input">Instance of Dog to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Dog other)
|
public bool Equals(Dog input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ClassName == other.ClassName ||
|
this.ClassName == input.ClassName ||
|
||||||
this.ClassName != null &&
|
(this.ClassName != null &&
|
||||||
this.ClassName.Equals(other.ClassName)
|
this.ClassName.Equals(input.ClassName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Color == other.Color ||
|
this.Color == input.Color ||
|
||||||
this.Color != null &&
|
(this.Color != null &&
|
||||||
this.Color.Equals(other.Color)
|
this.Color.Equals(input.Color))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Breed == other.Breed ||
|
this.Breed == input.Breed ||
|
||||||
this.Breed != null &&
|
(this.Breed != null &&
|
||||||
this.Breed.Equals(other.Breed)
|
this.Breed.Equals(input.Breed))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,18 +150,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||||
if (this.Color != null)
|
if (this.Color != null)
|
||||||
hash = hash * 59 + this.Color.GetHashCode();
|
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||||
if (this.Breed != null)
|
if (this.Breed != null)
|
||||||
hash = hash * 59 + this.Breed.GetHashCode();
|
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -120,35 +120,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as EnumArrays);
|
||||||
return this.Equals(obj as EnumArrays);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if EnumArrays instances are equal
|
/// Returns true if EnumArrays instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of EnumArrays to be compared</param>
|
/// <param name="input">Instance of EnumArrays to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(EnumArrays other)
|
public bool Equals(EnumArrays input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.JustSymbol == other.JustSymbol ||
|
this.JustSymbol == input.JustSymbol ||
|
||||||
this.JustSymbol != null &&
|
(this.JustSymbol != null &&
|
||||||
this.JustSymbol.Equals(other.JustSymbol)
|
this.JustSymbol.Equals(input.JustSymbol))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ArrayEnum == other.ArrayEnum ||
|
this.ArrayEnum == input.ArrayEnum ||
|
||||||
this.ArrayEnum != null &&
|
(this.ArrayEnum != null &&
|
||||||
this.ArrayEnum.SequenceEqual(other.ArrayEnum)
|
this.ArrayEnum.SequenceEqual(input.ArrayEnum))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,16 +156,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.JustSymbol != null)
|
if (this.JustSymbol != null)
|
||||||
hash = hash * 59 + this.JustSymbol.GetHashCode();
|
hashCode = hashCode * 59 + this.JustSymbol.GetHashCode();
|
||||||
if (this.ArrayEnum != null)
|
if (this.ArrayEnum != null)
|
||||||
hash = hash * 59 + this.ArrayEnum.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -163,45 +163,43 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as EnumTest);
|
||||||
return this.Equals(obj as EnumTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if EnumTest instances are equal
|
/// Returns true if EnumTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of EnumTest to be compared</param>
|
/// <param name="input">Instance of EnumTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(EnumTest other)
|
public bool Equals(EnumTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.EnumString == other.EnumString ||
|
this.EnumString == input.EnumString ||
|
||||||
this.EnumString != null &&
|
(this.EnumString != null &&
|
||||||
this.EnumString.Equals(other.EnumString)
|
this.EnumString.Equals(input.EnumString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.EnumInteger == other.EnumInteger ||
|
this.EnumInteger == input.EnumInteger ||
|
||||||
this.EnumInteger != null &&
|
(this.EnumInteger != null &&
|
||||||
this.EnumInteger.Equals(other.EnumInteger)
|
this.EnumInteger.Equals(input.EnumInteger))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.EnumNumber == other.EnumNumber ||
|
this.EnumNumber == input.EnumNumber ||
|
||||||
this.EnumNumber != null &&
|
(this.EnumNumber != null &&
|
||||||
this.EnumNumber.Equals(other.EnumNumber)
|
this.EnumNumber.Equals(input.EnumNumber))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.OuterEnum == other.OuterEnum ||
|
this.OuterEnum == input.OuterEnum ||
|
||||||
this.OuterEnum != null &&
|
(this.OuterEnum != null &&
|
||||||
this.OuterEnum.Equals(other.OuterEnum)
|
this.OuterEnum.Equals(input.OuterEnum))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,20 +209,18 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.EnumString != null)
|
if (this.EnumString != null)
|
||||||
hash = hash * 59 + this.EnumString.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumString.GetHashCode();
|
||||||
if (this.EnumInteger != null)
|
if (this.EnumInteger != null)
|
||||||
hash = hash * 59 + this.EnumInteger.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
|
||||||
if (this.EnumNumber != null)
|
if (this.EnumNumber != null)
|
||||||
hash = hash * 59 + this.EnumNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumNumber.GetHashCode();
|
||||||
if (this.OuterEnum != null)
|
if (this.OuterEnum != null)
|
||||||
hash = hash * 59 + this.OuterEnum.GetHashCode();
|
hashCode = hashCode * 59 + this.OuterEnum.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -216,90 +216,88 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as FormatTest);
|
||||||
return this.Equals(obj as FormatTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if FormatTest instances are equal
|
/// Returns true if FormatTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of FormatTest to be compared</param>
|
/// <param name="input">Instance of FormatTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(FormatTest other)
|
public bool Equals(FormatTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Integer == other.Integer ||
|
this.Integer == input.Integer ||
|
||||||
this.Integer != null &&
|
(this.Integer != null &&
|
||||||
this.Integer.Equals(other.Integer)
|
this.Integer.Equals(input.Integer))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Int32 == other.Int32 ||
|
this.Int32 == input.Int32 ||
|
||||||
this.Int32 != null &&
|
(this.Int32 != null &&
|
||||||
this.Int32.Equals(other.Int32)
|
this.Int32.Equals(input.Int32))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Int64 == other.Int64 ||
|
this.Int64 == input.Int64 ||
|
||||||
this.Int64 != null &&
|
(this.Int64 != null &&
|
||||||
this.Int64.Equals(other.Int64)
|
this.Int64.Equals(input.Int64))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Number == other.Number ||
|
this.Number == input.Number ||
|
||||||
this.Number != null &&
|
(this.Number != null &&
|
||||||
this.Number.Equals(other.Number)
|
this.Number.Equals(input.Number))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Float == other._Float ||
|
this._Float == input._Float ||
|
||||||
this._Float != null &&
|
(this._Float != null &&
|
||||||
this._Float.Equals(other._Float)
|
this._Float.Equals(input._Float))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Double == other._Double ||
|
this._Double == input._Double ||
|
||||||
this._Double != null &&
|
(this._Double != null &&
|
||||||
this._Double.Equals(other._Double)
|
this._Double.Equals(input._Double))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._String == other._String ||
|
this._String == input._String ||
|
||||||
this._String != null &&
|
(this._String != null &&
|
||||||
this._String.Equals(other._String)
|
this._String.Equals(input._String))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Byte == other._Byte ||
|
this._Byte == input._Byte ||
|
||||||
this._Byte != null &&
|
(this._Byte != null &&
|
||||||
this._Byte.Equals(other._Byte)
|
this._Byte.Equals(input._Byte))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Binary == other.Binary ||
|
this.Binary == input.Binary ||
|
||||||
this.Binary != null &&
|
(this.Binary != null &&
|
||||||
this.Binary.Equals(other.Binary)
|
this.Binary.Equals(input.Binary))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Date == other.Date ||
|
this.Date == input.Date ||
|
||||||
this.Date != null &&
|
(this.Date != null &&
|
||||||
this.Date.Equals(other.Date)
|
this.Date.Equals(input.Date))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.DateTime == other.DateTime ||
|
this.DateTime == input.DateTime ||
|
||||||
this.DateTime != null &&
|
(this.DateTime != null &&
|
||||||
this.DateTime.Equals(other.DateTime)
|
this.DateTime.Equals(input.DateTime))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Uuid == other.Uuid ||
|
this.Uuid == input.Uuid ||
|
||||||
this.Uuid != null &&
|
(this.Uuid != null &&
|
||||||
this.Uuid.Equals(other.Uuid)
|
this.Uuid.Equals(input.Uuid))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Password == other.Password ||
|
this.Password == input.Password ||
|
||||||
this.Password != null &&
|
(this.Password != null &&
|
||||||
this.Password.Equals(other.Password)
|
this.Password.Equals(input.Password))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -309,38 +307,36 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Integer != null)
|
if (this.Integer != null)
|
||||||
hash = hash * 59 + this.Integer.GetHashCode();
|
hashCode = hashCode * 59 + this.Integer.GetHashCode();
|
||||||
if (this.Int32 != null)
|
if (this.Int32 != null)
|
||||||
hash = hash * 59 + this.Int32.GetHashCode();
|
hashCode = hashCode * 59 + this.Int32.GetHashCode();
|
||||||
if (this.Int64 != null)
|
if (this.Int64 != null)
|
||||||
hash = hash * 59 + this.Int64.GetHashCode();
|
hashCode = hashCode * 59 + this.Int64.GetHashCode();
|
||||||
if (this.Number != null)
|
if (this.Number != null)
|
||||||
hash = hash * 59 + this.Number.GetHashCode();
|
hashCode = hashCode * 59 + this.Number.GetHashCode();
|
||||||
if (this._Float != null)
|
if (this._Float != null)
|
||||||
hash = hash * 59 + this._Float.GetHashCode();
|
hashCode = hashCode * 59 + this._Float.GetHashCode();
|
||||||
if (this._Double != null)
|
if (this._Double != null)
|
||||||
hash = hash * 59 + this._Double.GetHashCode();
|
hashCode = hashCode * 59 + this._Double.GetHashCode();
|
||||||
if (this._String != null)
|
if (this._String != null)
|
||||||
hash = hash * 59 + this._String.GetHashCode();
|
hashCode = hashCode * 59 + this._String.GetHashCode();
|
||||||
if (this._Byte != null)
|
if (this._Byte != null)
|
||||||
hash = hash * 59 + this._Byte.GetHashCode();
|
hashCode = hashCode * 59 + this._Byte.GetHashCode();
|
||||||
if (this.Binary != null)
|
if (this.Binary != null)
|
||||||
hash = hash * 59 + this.Binary.GetHashCode();
|
hashCode = hashCode * 59 + this.Binary.GetHashCode();
|
||||||
if (this.Date != null)
|
if (this.Date != null)
|
||||||
hash = hash * 59 + this.Date.GetHashCode();
|
hashCode = hashCode * 59 + this.Date.GetHashCode();
|
||||||
if (this.DateTime != null)
|
if (this.DateTime != null)
|
||||||
hash = hash * 59 + this.DateTime.GetHashCode();
|
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||||
if (this.Uuid != null)
|
if (this.Uuid != null)
|
||||||
hash = hash * 59 + this.Uuid.GetHashCode();
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
if (this.Password != null)
|
if (this.Password != null)
|
||||||
hash = hash * 59 + this.Password.GetHashCode();
|
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,35 +76,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as HasOnlyReadOnly);
|
||||||
return this.Equals(obj as HasOnlyReadOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if HasOnlyReadOnly instances are equal
|
/// Returns true if HasOnlyReadOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of HasOnlyReadOnly to be compared</param>
|
/// <param name="input">Instance of HasOnlyReadOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(HasOnlyReadOnly other)
|
public bool Equals(HasOnlyReadOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Bar == other.Bar ||
|
this.Bar == input.Bar ||
|
||||||
this.Bar != null &&
|
(this.Bar != null &&
|
||||||
this.Bar.Equals(other.Bar)
|
this.Bar.Equals(input.Bar))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Foo == other.Foo ||
|
this.Foo == input.Foo ||
|
||||||
this.Foo != null &&
|
(this.Foo != null &&
|
||||||
this.Foo.Equals(other.Foo)
|
this.Foo.Equals(input.Foo))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,16 +112,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Bar != null)
|
if (this.Bar != null)
|
||||||
hash = hash * 59 + this.Bar.GetHashCode();
|
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||||
if (this.Foo != null)
|
if (this.Foo != null)
|
||||||
hash = hash * 59 + this.Foo.GetHashCode();
|
hashCode = hashCode * 59 + this.Foo.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,30 +70,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as List);
|
||||||
return this.Equals(obj as List);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if List instances are equal
|
/// Returns true if List instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of List to be compared</param>
|
/// <param name="input">Instance of List to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(List other)
|
public bool Equals(List input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._123List == other._123List ||
|
this._123List == input._123List ||
|
||||||
this._123List != null &&
|
(this._123List != null &&
|
||||||
this._123List.Equals(other._123List)
|
this._123List.Equals(input._123List))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,14 +101,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._123List != null)
|
if (this._123List != null)
|
||||||
hash = hash * 59 + this._123List.GetHashCode();
|
hashCode = hashCode * 59 + this._123List.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,35 +100,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as MapTest);
|
||||||
return this.Equals(obj as MapTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if MapTest instances are equal
|
/// Returns true if MapTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of MapTest to be compared</param>
|
/// <param name="input">Instance of MapTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(MapTest other)
|
public bool Equals(MapTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.MapMapOfString == other.MapMapOfString ||
|
this.MapMapOfString == input.MapMapOfString ||
|
||||||
this.MapMapOfString != null &&
|
(this.MapMapOfString != null &&
|
||||||
this.MapMapOfString.SequenceEqual(other.MapMapOfString)
|
this.MapMapOfString.SequenceEqual(input.MapMapOfString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MapOfEnumString == other.MapOfEnumString ||
|
this.MapOfEnumString == input.MapOfEnumString ||
|
||||||
this.MapOfEnumString != null &&
|
(this.MapOfEnumString != null &&
|
||||||
this.MapOfEnumString.SequenceEqual(other.MapOfEnumString)
|
this.MapOfEnumString.SequenceEqual(input.MapOfEnumString))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,16 +136,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.MapMapOfString != null)
|
if (this.MapMapOfString != null)
|
||||||
hash = hash * 59 + this.MapMapOfString.GetHashCode();
|
hashCode = hashCode * 59 + this.MapMapOfString.GetHashCode();
|
||||||
if (this.MapOfEnumString != null)
|
if (this.MapOfEnumString != null)
|
||||||
hash = hash * 59 + this.MapOfEnumString.GetHashCode();
|
hashCode = hashCode * 59 + this.MapOfEnumString.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,40 +88,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as MixedPropertiesAndAdditionalPropertiesClass);
|
||||||
return this.Equals(obj as MixedPropertiesAndAdditionalPropertiesClass);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal
|
/// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared</param>
|
/// <param name="input">Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(MixedPropertiesAndAdditionalPropertiesClass other)
|
public bool Equals(MixedPropertiesAndAdditionalPropertiesClass input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Uuid == other.Uuid ||
|
this.Uuid == input.Uuid ||
|
||||||
this.Uuid != null &&
|
(this.Uuid != null &&
|
||||||
this.Uuid.Equals(other.Uuid)
|
this.Uuid.Equals(input.Uuid))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.DateTime == other.DateTime ||
|
this.DateTime == input.DateTime ||
|
||||||
this.DateTime != null &&
|
(this.DateTime != null &&
|
||||||
this.DateTime.Equals(other.DateTime)
|
this.DateTime.Equals(input.DateTime))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Map == other.Map ||
|
this.Map == input.Map ||
|
||||||
this.Map != null &&
|
(this.Map != null &&
|
||||||
this.Map.SequenceEqual(other.Map)
|
this.Map.SequenceEqual(input.Map))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,18 +129,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Uuid != null)
|
if (this.Uuid != null)
|
||||||
hash = hash * 59 + this.Uuid.GetHashCode();
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
if (this.DateTime != null)
|
if (this.DateTime != null)
|
||||||
hash = hash * 59 + this.DateTime.GetHashCode();
|
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||||
if (this.Map != null)
|
if (this.Map != null)
|
||||||
hash = hash * 59 + this.Map.GetHashCode();
|
hashCode = hashCode * 59 + this.Map.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,35 +79,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Model200Response);
|
||||||
return this.Equals(obj as Model200Response);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Model200Response instances are equal
|
/// Returns true if Model200Response instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Model200Response to be compared</param>
|
/// <param name="input">Instance of Model200Response to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Model200Response other)
|
public bool Equals(Model200Response input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Class == other._Class ||
|
this._Class == input._Class ||
|
||||||
this._Class != null &&
|
(this._Class != null &&
|
||||||
this._Class.Equals(other._Class)
|
this._Class.Equals(input._Class))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,16 +115,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
if (this._Class != null)
|
if (this._Class != null)
|
||||||
hash = hash * 59 + this._Class.GetHashCode();
|
hashCode = hashCode * 59 + this._Class.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,30 +70,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ModelClient);
|
||||||
return this.Equals(obj as ModelClient);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ModelClient instances are equal
|
/// Returns true if ModelClient instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ModelClient to be compared</param>
|
/// <param name="input">Instance of ModelClient to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ModelClient other)
|
public bool Equals(ModelClient input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Client == other._Client ||
|
this._Client == input._Client ||
|
||||||
this._Client != null &&
|
(this._Client != null &&
|
||||||
this._Client.Equals(other._Client)
|
this._Client.Equals(input._Client))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,14 +101,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Client != null)
|
if (this._Client != null)
|
||||||
hash = hash * 59 + this._Client.GetHashCode();
|
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,30 +70,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ModelReturn);
|
||||||
return this.Equals(obj as ModelReturn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ModelReturn instances are equal
|
/// Returns true if ModelReturn instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ModelReturn to be compared</param>
|
/// <param name="input">Instance of ModelReturn to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ModelReturn other)
|
public bool Equals(ModelReturn input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Return == other._Return ||
|
this._Return == input._Return ||
|
||||||
this._Return != null &&
|
(this._Return != null &&
|
||||||
this._Return.Equals(other._Return)
|
this._Return.Equals(input._Return))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,14 +101,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Return != null)
|
if (this._Return != null)
|
||||||
hash = hash * 59 + this._Return.GetHashCode();
|
hashCode = hashCode * 59 + this._Return.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,45 +106,43 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Name);
|
||||||
return this.Equals(obj as Name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Name instances are equal
|
/// Returns true if Name instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Name to be compared</param>
|
/// <param name="input">Instance of Name to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Name other)
|
public bool Equals(Name input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Name == other._Name ||
|
this._Name == input._Name ||
|
||||||
this._Name != null &&
|
(this._Name != null &&
|
||||||
this._Name.Equals(other._Name)
|
this._Name.Equals(input._Name))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.SnakeCase == other.SnakeCase ||
|
this.SnakeCase == input.SnakeCase ||
|
||||||
this.SnakeCase != null &&
|
(this.SnakeCase != null &&
|
||||||
this.SnakeCase.Equals(other.SnakeCase)
|
this.SnakeCase.Equals(input.SnakeCase))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Property == other.Property ||
|
this.Property == input.Property ||
|
||||||
this.Property != null &&
|
(this.Property != null &&
|
||||||
this.Property.Equals(other.Property)
|
this.Property.Equals(input.Property))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._123Number == other._123Number ||
|
this._123Number == input._123Number ||
|
||||||
this._123Number != null &&
|
(this._123Number != null &&
|
||||||
this._123Number.Equals(other._123Number)
|
this._123Number.Equals(input._123Number))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -154,20 +152,18 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Name != null)
|
if (this._Name != null)
|
||||||
hash = hash * 59 + this._Name.GetHashCode();
|
hashCode = hashCode * 59 + this._Name.GetHashCode();
|
||||||
if (this.SnakeCase != null)
|
if (this.SnakeCase != null)
|
||||||
hash = hash * 59 + this.SnakeCase.GetHashCode();
|
hashCode = hashCode * 59 + this.SnakeCase.GetHashCode();
|
||||||
if (this.Property != null)
|
if (this.Property != null)
|
||||||
hash = hash * 59 + this.Property.GetHashCode();
|
hashCode = hashCode * 59 + this.Property.GetHashCode();
|
||||||
if (this._123Number != null)
|
if (this._123Number != null)
|
||||||
hash = hash * 59 + this._123Number.GetHashCode();
|
hashCode = hashCode * 59 + this._123Number.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,30 +70,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as NumberOnly);
|
||||||
return this.Equals(obj as NumberOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if NumberOnly instances are equal
|
/// Returns true if NumberOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of NumberOnly to be compared</param>
|
/// <param name="input">Instance of NumberOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(NumberOnly other)
|
public bool Equals(NumberOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.JustNumber == other.JustNumber ||
|
this.JustNumber == input.JustNumber ||
|
||||||
this.JustNumber != null &&
|
(this.JustNumber != null &&
|
||||||
this.JustNumber.Equals(other.JustNumber)
|
this.JustNumber.Equals(input.JustNumber))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,14 +101,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.JustNumber != null)
|
if (this.JustNumber != null)
|
||||||
hash = hash * 59 + this.JustNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.JustNumber.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -151,55 +151,53 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Order);
|
||||||
return this.Equals(obj as Order);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Order instances are equal
|
/// Returns true if Order instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Order to be compared</param>
|
/// <param name="input">Instance of Order to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Order other)
|
public bool Equals(Order input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.PetId == other.PetId ||
|
this.PetId == input.PetId ||
|
||||||
this.PetId != null &&
|
(this.PetId != null &&
|
||||||
this.PetId.Equals(other.PetId)
|
this.PetId.Equals(input.PetId))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Quantity == other.Quantity ||
|
this.Quantity == input.Quantity ||
|
||||||
this.Quantity != null &&
|
(this.Quantity != null &&
|
||||||
this.Quantity.Equals(other.Quantity)
|
this.Quantity.Equals(input.Quantity))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ShipDate == other.ShipDate ||
|
this.ShipDate == input.ShipDate ||
|
||||||
this.ShipDate != null &&
|
(this.ShipDate != null &&
|
||||||
this.ShipDate.Equals(other.ShipDate)
|
this.ShipDate.Equals(input.ShipDate))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Status == other.Status ||
|
this.Status == input.Status ||
|
||||||
this.Status != null &&
|
(this.Status != null &&
|
||||||
this.Status.Equals(other.Status)
|
this.Status.Equals(input.Status))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Complete == other.Complete ||
|
this.Complete == input.Complete ||
|
||||||
this.Complete != null &&
|
(this.Complete != null &&
|
||||||
this.Complete.Equals(other.Complete)
|
this.Complete.Equals(input.Complete))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,24 +207,22 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.PetId != null)
|
if (this.PetId != null)
|
||||||
hash = hash * 59 + this.PetId.GetHashCode();
|
hashCode = hashCode * 59 + this.PetId.GetHashCode();
|
||||||
if (this.Quantity != null)
|
if (this.Quantity != null)
|
||||||
hash = hash * 59 + this.Quantity.GetHashCode();
|
hashCode = hashCode * 59 + this.Quantity.GetHashCode();
|
||||||
if (this.ShipDate != null)
|
if (this.ShipDate != null)
|
||||||
hash = hash * 59 + this.ShipDate.GetHashCode();
|
hashCode = hashCode * 59 + this.ShipDate.GetHashCode();
|
||||||
if (this.Status != null)
|
if (this.Status != null)
|
||||||
hash = hash * 59 + this.Status.GetHashCode();
|
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
||||||
if (this.Complete != null)
|
if (this.Complete != null)
|
||||||
hash = hash * 59 + this.Complete.GetHashCode();
|
hashCode = hashCode * 59 + this.Complete.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,23 +62,21 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as OuterBoolean);
|
||||||
return this.Equals(obj as OuterBoolean);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if OuterBoolean instances are equal
|
/// Returns true if OuterBoolean instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of OuterBoolean to be compared</param>
|
/// <param name="input">Instance of OuterBoolean to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(OuterBoolean other)
|
public bool Equals(OuterBoolean input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -90,12 +88,10 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
return hashCode;
|
||||||
return hash;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,40 +88,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as OuterComposite);
|
||||||
return this.Equals(obj as OuterComposite);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if OuterComposite instances are equal
|
/// Returns true if OuterComposite instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of OuterComposite to be compared</param>
|
/// <param name="input">Instance of OuterComposite to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(OuterComposite other)
|
public bool Equals(OuterComposite input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.MyNumber == other.MyNumber ||
|
this.MyNumber == input.MyNumber ||
|
||||||
this.MyNumber != null &&
|
(this.MyNumber != null &&
|
||||||
this.MyNumber.Equals(other.MyNumber)
|
this.MyNumber.Equals(input.MyNumber))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MyString == other.MyString ||
|
this.MyString == input.MyString ||
|
||||||
this.MyString != null &&
|
(this.MyString != null &&
|
||||||
this.MyString.Equals(other.MyString)
|
this.MyString.Equals(input.MyString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MyBoolean == other.MyBoolean ||
|
this.MyBoolean == input.MyBoolean ||
|
||||||
this.MyBoolean != null &&
|
(this.MyBoolean != null &&
|
||||||
this.MyBoolean.Equals(other.MyBoolean)
|
this.MyBoolean.Equals(input.MyBoolean))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,18 +129,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.MyNumber != null)
|
if (this.MyNumber != null)
|
||||||
hash = hash * 59 + this.MyNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.MyNumber.GetHashCode();
|
||||||
if (this.MyString != null)
|
if (this.MyString != null)
|
||||||
hash = hash * 59 + this.MyString.GetHashCode();
|
hashCode = hashCode * 59 + this.MyString.GetHashCode();
|
||||||
if (this.MyBoolean != null)
|
if (this.MyBoolean != null)
|
||||||
hash = hash * 59 + this.MyBoolean.GetHashCode();
|
hashCode = hashCode * 59 + this.MyBoolean.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,23 +62,21 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as OuterNumber);
|
||||||
return this.Equals(obj as OuterNumber);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if OuterNumber instances are equal
|
/// Returns true if OuterNumber instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of OuterNumber to be compared</param>
|
/// <param name="input">Instance of OuterNumber to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(OuterNumber other)
|
public bool Equals(OuterNumber input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -90,12 +88,10 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
return hashCode;
|
||||||
return hash;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,23 +62,21 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as OuterString);
|
||||||
return this.Equals(obj as OuterString);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if OuterString instances are equal
|
/// Returns true if OuterString instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of OuterString to be compared</param>
|
/// <param name="input">Instance of OuterString to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(OuterString other)
|
public bool Equals(OuterString input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -90,12 +88,10 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
return hashCode;
|
||||||
return hash;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -164,55 +164,53 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Pet);
|
||||||
return this.Equals(obj as Pet);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Pet instances are equal
|
/// Returns true if Pet instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Pet to be compared</param>
|
/// <param name="input">Instance of Pet to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Pet other)
|
public bool Equals(Pet input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Category == other.Category ||
|
this.Category == input.Category ||
|
||||||
this.Category != null &&
|
(this.Category != null &&
|
||||||
this.Category.Equals(other.Category)
|
this.Category.Equals(input.Category))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.PhotoUrls == other.PhotoUrls ||
|
this.PhotoUrls == input.PhotoUrls ||
|
||||||
this.PhotoUrls != null &&
|
(this.PhotoUrls != null &&
|
||||||
this.PhotoUrls.SequenceEqual(other.PhotoUrls)
|
this.PhotoUrls.SequenceEqual(input.PhotoUrls))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Tags == other.Tags ||
|
this.Tags == input.Tags ||
|
||||||
this.Tags != null &&
|
(this.Tags != null &&
|
||||||
this.Tags.SequenceEqual(other.Tags)
|
this.Tags.SequenceEqual(input.Tags))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Status == other.Status ||
|
this.Status == input.Status ||
|
||||||
this.Status != null &&
|
(this.Status != null &&
|
||||||
this.Status.Equals(other.Status)
|
this.Status.Equals(input.Status))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,24 +220,22 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.Category != null)
|
if (this.Category != null)
|
||||||
hash = hash * 59 + this.Category.GetHashCode();
|
hashCode = hashCode * 59 + this.Category.GetHashCode();
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
if (this.PhotoUrls != null)
|
if (this.PhotoUrls != null)
|
||||||
hash = hash * 59 + this.PhotoUrls.GetHashCode();
|
hashCode = hashCode * 59 + this.PhotoUrls.GetHashCode();
|
||||||
if (this.Tags != null)
|
if (this.Tags != null)
|
||||||
hash = hash * 59 + this.Tags.GetHashCode();
|
hashCode = hashCode * 59 + this.Tags.GetHashCode();
|
||||||
if (this.Status != null)
|
if (this.Status != null)
|
||||||
hash = hash * 59 + this.Status.GetHashCode();
|
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,35 +77,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ReadOnlyFirst);
|
||||||
return this.Equals(obj as ReadOnlyFirst);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ReadOnlyFirst instances are equal
|
/// Returns true if ReadOnlyFirst instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ReadOnlyFirst to be compared</param>
|
/// <param name="input">Instance of ReadOnlyFirst to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ReadOnlyFirst other)
|
public bool Equals(ReadOnlyFirst input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Bar == other.Bar ||
|
this.Bar == input.Bar ||
|
||||||
this.Bar != null &&
|
(this.Bar != null &&
|
||||||
this.Bar.Equals(other.Bar)
|
this.Bar.Equals(input.Bar))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Baz == other.Baz ||
|
this.Baz == input.Baz ||
|
||||||
this.Baz != null &&
|
(this.Baz != null &&
|
||||||
this.Baz.Equals(other.Baz)
|
this.Baz.Equals(input.Baz))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,16 +113,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Bar != null)
|
if (this.Bar != null)
|
||||||
hash = hash * 59 + this.Bar.GetHashCode();
|
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||||
if (this.Baz != null)
|
if (this.Baz != null)
|
||||||
hash = hash * 59 + this.Baz.GetHashCode();
|
hashCode = hashCode * 59 + this.Baz.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,30 +70,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as SpecialModelName);
|
||||||
return this.Equals(obj as SpecialModelName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if SpecialModelName instances are equal
|
/// Returns true if SpecialModelName instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of SpecialModelName to be compared</param>
|
/// <param name="input">Instance of SpecialModelName to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(SpecialModelName other)
|
public bool Equals(SpecialModelName input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.SpecialPropertyName == other.SpecialPropertyName ||
|
this.SpecialPropertyName == input.SpecialPropertyName ||
|
||||||
this.SpecialPropertyName != null &&
|
(this.SpecialPropertyName != null &&
|
||||||
this.SpecialPropertyName.Equals(other.SpecialPropertyName)
|
this.SpecialPropertyName.Equals(input.SpecialPropertyName))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,14 +101,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.SpecialPropertyName != null)
|
if (this.SpecialPropertyName != null)
|
||||||
hash = hash * 59 + this.SpecialPropertyName.GetHashCode();
|
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,35 +79,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Tag);
|
||||||
return this.Equals(obj as Tag);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Tag instances are equal
|
/// Returns true if Tag instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Tag to be compared</param>
|
/// <param name="input">Instance of Tag to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Tag other)
|
public bool Equals(Tag input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,16 +115,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -134,65 +134,63 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as User);
|
||||||
return this.Equals(obj as User);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if User instances are equal
|
/// Returns true if User instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of User to be compared</param>
|
/// <param name="input">Instance of User to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(User other)
|
public bool Equals(User input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Username == other.Username ||
|
this.Username == input.Username ||
|
||||||
this.Username != null &&
|
(this.Username != null &&
|
||||||
this.Username.Equals(other.Username)
|
this.Username.Equals(input.Username))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.FirstName == other.FirstName ||
|
this.FirstName == input.FirstName ||
|
||||||
this.FirstName != null &&
|
(this.FirstName != null &&
|
||||||
this.FirstName.Equals(other.FirstName)
|
this.FirstName.Equals(input.FirstName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.LastName == other.LastName ||
|
this.LastName == input.LastName ||
|
||||||
this.LastName != null &&
|
(this.LastName != null &&
|
||||||
this.LastName.Equals(other.LastName)
|
this.LastName.Equals(input.LastName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Email == other.Email ||
|
this.Email == input.Email ||
|
||||||
this.Email != null &&
|
(this.Email != null &&
|
||||||
this.Email.Equals(other.Email)
|
this.Email.Equals(input.Email))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Password == other.Password ||
|
this.Password == input.Password ||
|
||||||
this.Password != null &&
|
(this.Password != null &&
|
||||||
this.Password.Equals(other.Password)
|
this.Password.Equals(input.Password))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Phone == other.Phone ||
|
this.Phone == input.Phone ||
|
||||||
this.Phone != null &&
|
(this.Phone != null &&
|
||||||
this.Phone.Equals(other.Phone)
|
this.Phone.Equals(input.Phone))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.UserStatus == other.UserStatus ||
|
this.UserStatus == input.UserStatus ||
|
||||||
this.UserStatus != null &&
|
(this.UserStatus != null &&
|
||||||
this.UserStatus.Equals(other.UserStatus)
|
this.UserStatus.Equals(input.UserStatus))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -202,28 +200,26 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.Username != null)
|
if (this.Username != null)
|
||||||
hash = hash * 59 + this.Username.GetHashCode();
|
hashCode = hashCode * 59 + this.Username.GetHashCode();
|
||||||
if (this.FirstName != null)
|
if (this.FirstName != null)
|
||||||
hash = hash * 59 + this.FirstName.GetHashCode();
|
hashCode = hashCode * 59 + this.FirstName.GetHashCode();
|
||||||
if (this.LastName != null)
|
if (this.LastName != null)
|
||||||
hash = hash * 59 + this.LastName.GetHashCode();
|
hashCode = hashCode * 59 + this.LastName.GetHashCode();
|
||||||
if (this.Email != null)
|
if (this.Email != null)
|
||||||
hash = hash * 59 + this.Email.GetHashCode();
|
hashCode = hashCode * 59 + this.Email.GetHashCode();
|
||||||
if (this.Password != null)
|
if (this.Password != null)
|
||||||
hash = hash * 59 + this.Password.GetHashCode();
|
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||||
if (this.Phone != null)
|
if (this.Phone != null)
|
||||||
hash = hash * 59 + this.Phone.GetHashCode();
|
hashCode = hashCode * 59 + this.Phone.GetHashCode();
|
||||||
if (this.UserStatus != null)
|
if (this.UserStatus != null)
|
||||||
hash = hash * 59 + this.UserStatus.GetHashCode();
|
hashCode = hashCode * 59 + this.UserStatus.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -404,31 +404,29 @@ namespace IO.Swagger.Client
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dynamically cast the object into target type.
|
/// Dynamically cast the object into target type.
|
||||||
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">Object to be casted</param>
|
/// <param name="fromObject">Object to be casted</param>
|
||||||
/// <param name="dest">Target type</param>
|
/// <param name="toObject">Target type</param>
|
||||||
/// <returns>Casted object</returns>
|
/// <returns>Casted object</returns>
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert stream to byte array
|
/// Convert stream to byte array
|
||||||
/// Credit/Ref: http://stackoverflow.com/a/221941/677735
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input">Input stream to be converted</param>
|
/// <param name="inputStream">Input stream to be converted</param>
|
||||||
/// <returns>Byte array</returns>
|
/// <returns>Byte array</returns>
|
||||||
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())
|
using (MemoryStream ms = new MemoryStream())
|
||||||
{
|
{
|
||||||
int read;
|
int count;
|
||||||
while ((read = input.Read(buffer, 0, buffer.Length)) > 0)
|
while ((count = inputStream.Read(buf, 0, buf.Length)) > 0)
|
||||||
{
|
{
|
||||||
ms.Write(buffer, 0, read);
|
ms.Write(buf, 0, count);
|
||||||
}
|
}
|
||||||
return ms.ToArray();
|
return ms.ToArray();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,35 +77,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as AdditionalPropertiesClass);
|
||||||
return this.Equals(obj as AdditionalPropertiesClass);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if AdditionalPropertiesClass instances are equal
|
/// Returns true if AdditionalPropertiesClass instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of AdditionalPropertiesClass to be compared</param>
|
/// <param name="input">Instance of AdditionalPropertiesClass to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(AdditionalPropertiesClass other)
|
public bool Equals(AdditionalPropertiesClass input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.MapProperty == other.MapProperty ||
|
this.MapProperty == input.MapProperty ||
|
||||||
this.MapProperty != null &&
|
(this.MapProperty != null &&
|
||||||
this.MapProperty.SequenceEqual(other.MapProperty)
|
this.MapProperty.SequenceEqual(input.MapProperty))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MapOfMapProperty == other.MapOfMapProperty ||
|
this.MapOfMapProperty == input.MapOfMapProperty ||
|
||||||
this.MapOfMapProperty != null &&
|
(this.MapOfMapProperty != null &&
|
||||||
this.MapOfMapProperty.SequenceEqual(other.MapOfMapProperty)
|
this.MapOfMapProperty.SequenceEqual(input.MapOfMapProperty))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,16 +113,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.MapProperty != null)
|
if (this.MapProperty != null)
|
||||||
hash = hash * 59 + this.MapProperty.GetHashCode();
|
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||||
if (this.MapOfMapProperty != null)
|
if (this.MapOfMapProperty != null)
|
||||||
hash = hash * 59 + this.MapOfMapProperty.GetHashCode();
|
hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,35 +98,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Animal);
|
||||||
return this.Equals(obj as Animal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Animal instances are equal
|
/// Returns true if Animal instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Animal to be compared</param>
|
/// <param name="input">Instance of Animal to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Animal other)
|
public bool Equals(Animal input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ClassName == other.ClassName ||
|
this.ClassName == input.ClassName ||
|
||||||
this.ClassName != null &&
|
(this.ClassName != null &&
|
||||||
this.ClassName.Equals(other.ClassName)
|
this.ClassName.Equals(input.ClassName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Color == other.Color ||
|
this.Color == input.Color ||
|
||||||
this.Color != null &&
|
(this.Color != null &&
|
||||||
this.Color.Equals(other.Color)
|
this.Color.Equals(input.Color))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,16 +134,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||||
if (this.Color != null)
|
if (this.Color != null)
|
||||||
hash = hash * 59 + this.Color.GetHashCode();
|
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,23 +60,21 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as AnimalFarm);
|
||||||
return this.Equals(obj as AnimalFarm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if AnimalFarm instances are equal
|
/// Returns true if AnimalFarm instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of AnimalFarm to be compared</param>
|
/// <param name="input">Instance of AnimalFarm to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(AnimalFarm other)
|
public bool Equals(AnimalFarm input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -88,12 +86,10 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
return hashCode;
|
||||||
return hash;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,40 +86,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ApiResponse);
|
||||||
return this.Equals(obj as ApiResponse);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ApiResponse instances are equal
|
/// Returns true if ApiResponse instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ApiResponse to be compared</param>
|
/// <param name="input">Instance of ApiResponse to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ApiResponse other)
|
public bool Equals(ApiResponse input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Code == other.Code ||
|
this.Code == input.Code ||
|
||||||
this.Code != null &&
|
(this.Code != null &&
|
||||||
this.Code.Equals(other.Code)
|
this.Code.Equals(input.Code))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Type == other.Type ||
|
this.Type == input.Type ||
|
||||||
this.Type != null &&
|
(this.Type != null &&
|
||||||
this.Type.Equals(other.Type)
|
this.Type.Equals(input.Type))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Message == other.Message ||
|
this.Message == input.Message ||
|
||||||
this.Message != null &&
|
(this.Message != null &&
|
||||||
this.Message.Equals(other.Message)
|
this.Message.Equals(input.Message))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,18 +127,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Code != null)
|
if (this.Code != null)
|
||||||
hash = hash * 59 + this.Code.GetHashCode();
|
hashCode = hashCode * 59 + this.Code.GetHashCode();
|
||||||
if (this.Type != null)
|
if (this.Type != null)
|
||||||
hash = hash * 59 + this.Type.GetHashCode();
|
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||||
if (this.Message != null)
|
if (this.Message != null)
|
||||||
hash = hash * 59 + this.Message.GetHashCode();
|
hashCode = hashCode * 59 + this.Message.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,30 +68,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ArrayOfArrayOfNumberOnly);
|
||||||
return this.Equals(obj as ArrayOfArrayOfNumberOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ArrayOfArrayOfNumberOnly instances are equal
|
/// Returns true if ArrayOfArrayOfNumberOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ArrayOfArrayOfNumberOnly to be compared</param>
|
/// <param name="input">Instance of ArrayOfArrayOfNumberOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ArrayOfArrayOfNumberOnly other)
|
public bool Equals(ArrayOfArrayOfNumberOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ArrayArrayNumber == other.ArrayArrayNumber ||
|
this.ArrayArrayNumber == input.ArrayArrayNumber ||
|
||||||
this.ArrayArrayNumber != null &&
|
(this.ArrayArrayNumber != null &&
|
||||||
this.ArrayArrayNumber.SequenceEqual(other.ArrayArrayNumber)
|
this.ArrayArrayNumber.SequenceEqual(input.ArrayArrayNumber))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,14 +99,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ArrayArrayNumber != null)
|
if (this.ArrayArrayNumber != null)
|
||||||
hash = hash * 59 + this.ArrayArrayNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,30 +68,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ArrayOfNumberOnly);
|
||||||
return this.Equals(obj as ArrayOfNumberOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ArrayOfNumberOnly instances are equal
|
/// Returns true if ArrayOfNumberOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ArrayOfNumberOnly to be compared</param>
|
/// <param name="input">Instance of ArrayOfNumberOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ArrayOfNumberOnly other)
|
public bool Equals(ArrayOfNumberOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ArrayNumber == other.ArrayNumber ||
|
this.ArrayNumber == input.ArrayNumber ||
|
||||||
this.ArrayNumber != null &&
|
(this.ArrayNumber != null &&
|
||||||
this.ArrayNumber.SequenceEqual(other.ArrayNumber)
|
this.ArrayNumber.SequenceEqual(input.ArrayNumber))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,14 +99,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ArrayNumber != null)
|
if (this.ArrayNumber != null)
|
||||||
hash = hash * 59 + this.ArrayNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,40 +86,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ArrayTest);
|
||||||
return this.Equals(obj as ArrayTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ArrayTest instances are equal
|
/// Returns true if ArrayTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ArrayTest to be compared</param>
|
/// <param name="input">Instance of ArrayTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ArrayTest other)
|
public bool Equals(ArrayTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ArrayOfString == other.ArrayOfString ||
|
this.ArrayOfString == input.ArrayOfString ||
|
||||||
this.ArrayOfString != null &&
|
(this.ArrayOfString != null &&
|
||||||
this.ArrayOfString.SequenceEqual(other.ArrayOfString)
|
this.ArrayOfString.SequenceEqual(input.ArrayOfString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ArrayArrayOfInteger == other.ArrayArrayOfInteger ||
|
this.ArrayArrayOfInteger == input.ArrayArrayOfInteger ||
|
||||||
this.ArrayArrayOfInteger != null &&
|
(this.ArrayArrayOfInteger != null &&
|
||||||
this.ArrayArrayOfInteger.SequenceEqual(other.ArrayArrayOfInteger)
|
this.ArrayArrayOfInteger.SequenceEqual(input.ArrayArrayOfInteger))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ArrayArrayOfModel == other.ArrayArrayOfModel ||
|
this.ArrayArrayOfModel == input.ArrayArrayOfModel ||
|
||||||
this.ArrayArrayOfModel != null &&
|
(this.ArrayArrayOfModel != null &&
|
||||||
this.ArrayArrayOfModel.SequenceEqual(other.ArrayArrayOfModel)
|
this.ArrayArrayOfModel.SequenceEqual(input.ArrayArrayOfModel))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,18 +127,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ArrayOfString != null)
|
if (this.ArrayOfString != null)
|
||||||
hash = hash * 59 + this.ArrayOfString.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode();
|
||||||
if (this.ArrayArrayOfInteger != null)
|
if (this.ArrayArrayOfInteger != null)
|
||||||
hash = hash * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
||||||
if (this.ArrayArrayOfModel != null)
|
if (this.ArrayArrayOfModel != null)
|
||||||
hash = hash * 59 + this.ArrayArrayOfModel.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,55 +114,53 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Capitalization);
|
||||||
return this.Equals(obj as Capitalization);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Capitalization instances are equal
|
/// Returns true if Capitalization instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Capitalization to be compared</param>
|
/// <param name="input">Instance of Capitalization to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Capitalization other)
|
public bool Equals(Capitalization input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.SmallCamel == other.SmallCamel ||
|
this.SmallCamel == input.SmallCamel ||
|
||||||
this.SmallCamel != null &&
|
(this.SmallCamel != null &&
|
||||||
this.SmallCamel.Equals(other.SmallCamel)
|
this.SmallCamel.Equals(input.SmallCamel))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.CapitalCamel == other.CapitalCamel ||
|
this.CapitalCamel == input.CapitalCamel ||
|
||||||
this.CapitalCamel != null &&
|
(this.CapitalCamel != null &&
|
||||||
this.CapitalCamel.Equals(other.CapitalCamel)
|
this.CapitalCamel.Equals(input.CapitalCamel))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.SmallSnake == other.SmallSnake ||
|
this.SmallSnake == input.SmallSnake ||
|
||||||
this.SmallSnake != null &&
|
(this.SmallSnake != null &&
|
||||||
this.SmallSnake.Equals(other.SmallSnake)
|
this.SmallSnake.Equals(input.SmallSnake))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.CapitalSnake == other.CapitalSnake ||
|
this.CapitalSnake == input.CapitalSnake ||
|
||||||
this.CapitalSnake != null &&
|
(this.CapitalSnake != null &&
|
||||||
this.CapitalSnake.Equals(other.CapitalSnake)
|
this.CapitalSnake.Equals(input.CapitalSnake))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.SCAETHFlowPoints == other.SCAETHFlowPoints ||
|
this.SCAETHFlowPoints == input.SCAETHFlowPoints ||
|
||||||
this.SCAETHFlowPoints != null &&
|
(this.SCAETHFlowPoints != null &&
|
||||||
this.SCAETHFlowPoints.Equals(other.SCAETHFlowPoints)
|
this.SCAETHFlowPoints.Equals(input.SCAETHFlowPoints))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ATT_NAME == other.ATT_NAME ||
|
this.ATT_NAME == input.ATT_NAME ||
|
||||||
this.ATT_NAME != null &&
|
(this.ATT_NAME != null &&
|
||||||
this.ATT_NAME.Equals(other.ATT_NAME)
|
this.ATT_NAME.Equals(input.ATT_NAME))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,24 +170,22 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.SmallCamel != null)
|
if (this.SmallCamel != null)
|
||||||
hash = hash * 59 + this.SmallCamel.GetHashCode();
|
hashCode = hashCode * 59 + this.SmallCamel.GetHashCode();
|
||||||
if (this.CapitalCamel != null)
|
if (this.CapitalCamel != null)
|
||||||
hash = hash * 59 + this.CapitalCamel.GetHashCode();
|
hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode();
|
||||||
if (this.SmallSnake != null)
|
if (this.SmallSnake != null)
|
||||||
hash = hash * 59 + this.SmallSnake.GetHashCode();
|
hashCode = hashCode * 59 + this.SmallSnake.GetHashCode();
|
||||||
if (this.CapitalSnake != null)
|
if (this.CapitalSnake != null)
|
||||||
hash = hash * 59 + this.CapitalSnake.GetHashCode();
|
hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode();
|
||||||
if (this.SCAETHFlowPoints != null)
|
if (this.SCAETHFlowPoints != null)
|
||||||
hash = hash * 59 + this.SCAETHFlowPoints.GetHashCode();
|
hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode();
|
||||||
if (this.ATT_NAME != null)
|
if (this.ATT_NAME != null)
|
||||||
hash = hash * 59 + this.ATT_NAME.GetHashCode();
|
hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,40 +107,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Cat);
|
||||||
return this.Equals(obj as Cat);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Cat instances are equal
|
/// Returns true if Cat instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Cat to be compared</param>
|
/// <param name="input">Instance of Cat to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Cat other)
|
public bool Equals(Cat input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ClassName == other.ClassName ||
|
this.ClassName == input.ClassName ||
|
||||||
this.ClassName != null &&
|
(this.ClassName != null &&
|
||||||
this.ClassName.Equals(other.ClassName)
|
this.ClassName.Equals(input.ClassName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Color == other.Color ||
|
this.Color == input.Color ||
|
||||||
this.Color != null &&
|
(this.Color != null &&
|
||||||
this.Color.Equals(other.Color)
|
this.Color.Equals(input.Color))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Declawed == other.Declawed ||
|
this.Declawed == input.Declawed ||
|
||||||
this.Declawed != null &&
|
(this.Declawed != null &&
|
||||||
this.Declawed.Equals(other.Declawed)
|
this.Declawed.Equals(input.Declawed))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -150,18 +148,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||||
if (this.Color != null)
|
if (this.Color != null)
|
||||||
hash = hash * 59 + this.Color.GetHashCode();
|
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||||
if (this.Declawed != null)
|
if (this.Declawed != null)
|
||||||
hash = hash * 59 + this.Declawed.GetHashCode();
|
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,35 +77,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Category);
|
||||||
return this.Equals(obj as Category);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Category instances are equal
|
/// Returns true if Category instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Category to be compared</param>
|
/// <param name="input">Instance of Category to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Category other)
|
public bool Equals(Category input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,16 +113,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,30 +68,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ClassModel);
|
||||||
return this.Equals(obj as ClassModel);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ClassModel instances are equal
|
/// Returns true if ClassModel instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ClassModel to be compared</param>
|
/// <param name="input">Instance of ClassModel to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ClassModel other)
|
public bool Equals(ClassModel input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Class == other._Class ||
|
this._Class == input._Class ||
|
||||||
this._Class != null &&
|
(this._Class != null &&
|
||||||
this._Class.Equals(other._Class)
|
this._Class.Equals(input._Class))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,14 +99,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Class != null)
|
if (this._Class != null)
|
||||||
hash = hash * 59 + this._Class.GetHashCode();
|
hashCode = hashCode * 59 + this._Class.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,40 +107,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Dog);
|
||||||
return this.Equals(obj as Dog);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Dog instances are equal
|
/// Returns true if Dog instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Dog to be compared</param>
|
/// <param name="input">Instance of Dog to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Dog other)
|
public bool Equals(Dog input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ClassName == other.ClassName ||
|
this.ClassName == input.ClassName ||
|
||||||
this.ClassName != null &&
|
(this.ClassName != null &&
|
||||||
this.ClassName.Equals(other.ClassName)
|
this.ClassName.Equals(input.ClassName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Color == other.Color ||
|
this.Color == input.Color ||
|
||||||
this.Color != null &&
|
(this.Color != null &&
|
||||||
this.Color.Equals(other.Color)
|
this.Color.Equals(input.Color))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Breed == other.Breed ||
|
this.Breed == input.Breed ||
|
||||||
this.Breed != null &&
|
(this.Breed != null &&
|
||||||
this.Breed.Equals(other.Breed)
|
this.Breed.Equals(input.Breed))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -150,18 +148,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||||
if (this.Color != null)
|
if (this.Color != null)
|
||||||
hash = hash * 59 + this.Color.GetHashCode();
|
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||||
if (this.Breed != null)
|
if (this.Breed != null)
|
||||||
hash = hash * 59 + this.Breed.GetHashCode();
|
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,35 +118,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as EnumArrays);
|
||||||
return this.Equals(obj as EnumArrays);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if EnumArrays instances are equal
|
/// Returns true if EnumArrays instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of EnumArrays to be compared</param>
|
/// <param name="input">Instance of EnumArrays to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(EnumArrays other)
|
public bool Equals(EnumArrays input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.JustSymbol == other.JustSymbol ||
|
this.JustSymbol == input.JustSymbol ||
|
||||||
this.JustSymbol != null &&
|
(this.JustSymbol != null &&
|
||||||
this.JustSymbol.Equals(other.JustSymbol)
|
this.JustSymbol.Equals(input.JustSymbol))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ArrayEnum == other.ArrayEnum ||
|
this.ArrayEnum == input.ArrayEnum ||
|
||||||
this.ArrayEnum != null &&
|
(this.ArrayEnum != null &&
|
||||||
this.ArrayEnum.SequenceEqual(other.ArrayEnum)
|
this.ArrayEnum.SequenceEqual(input.ArrayEnum))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -156,16 +154,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.JustSymbol != null)
|
if (this.JustSymbol != null)
|
||||||
hash = hash * 59 + this.JustSymbol.GetHashCode();
|
hashCode = hashCode * 59 + this.JustSymbol.GetHashCode();
|
||||||
if (this.ArrayEnum != null)
|
if (this.ArrayEnum != null)
|
||||||
hash = hash * 59 + this.ArrayEnum.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,45 +161,43 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as EnumTest);
|
||||||
return this.Equals(obj as EnumTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if EnumTest instances are equal
|
/// Returns true if EnumTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of EnumTest to be compared</param>
|
/// <param name="input">Instance of EnumTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(EnumTest other)
|
public bool Equals(EnumTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.EnumString == other.EnumString ||
|
this.EnumString == input.EnumString ||
|
||||||
this.EnumString != null &&
|
(this.EnumString != null &&
|
||||||
this.EnumString.Equals(other.EnumString)
|
this.EnumString.Equals(input.EnumString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.EnumInteger == other.EnumInteger ||
|
this.EnumInteger == input.EnumInteger ||
|
||||||
this.EnumInteger != null &&
|
(this.EnumInteger != null &&
|
||||||
this.EnumInteger.Equals(other.EnumInteger)
|
this.EnumInteger.Equals(input.EnumInteger))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.EnumNumber == other.EnumNumber ||
|
this.EnumNumber == input.EnumNumber ||
|
||||||
this.EnumNumber != null &&
|
(this.EnumNumber != null &&
|
||||||
this.EnumNumber.Equals(other.EnumNumber)
|
this.EnumNumber.Equals(input.EnumNumber))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.OuterEnum == other.OuterEnum ||
|
this.OuterEnum == input.OuterEnum ||
|
||||||
this.OuterEnum != null &&
|
(this.OuterEnum != null &&
|
||||||
this.OuterEnum.Equals(other.OuterEnum)
|
this.OuterEnum.Equals(input.OuterEnum))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,20 +207,18 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.EnumString != null)
|
if (this.EnumString != null)
|
||||||
hash = hash * 59 + this.EnumString.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumString.GetHashCode();
|
||||||
if (this.EnumInteger != null)
|
if (this.EnumInteger != null)
|
||||||
hash = hash * 59 + this.EnumInteger.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
|
||||||
if (this.EnumNumber != null)
|
if (this.EnumNumber != null)
|
||||||
hash = hash * 59 + this.EnumNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumNumber.GetHashCode();
|
||||||
if (this.OuterEnum != null)
|
if (this.OuterEnum != null)
|
||||||
hash = hash * 59 + this.OuterEnum.GetHashCode();
|
hashCode = hashCode * 59 + this.OuterEnum.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,90 +214,88 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as FormatTest);
|
||||||
return this.Equals(obj as FormatTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if FormatTest instances are equal
|
/// Returns true if FormatTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of FormatTest to be compared</param>
|
/// <param name="input">Instance of FormatTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(FormatTest other)
|
public bool Equals(FormatTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Integer == other.Integer ||
|
this.Integer == input.Integer ||
|
||||||
this.Integer != null &&
|
(this.Integer != null &&
|
||||||
this.Integer.Equals(other.Integer)
|
this.Integer.Equals(input.Integer))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Int32 == other.Int32 ||
|
this.Int32 == input.Int32 ||
|
||||||
this.Int32 != null &&
|
(this.Int32 != null &&
|
||||||
this.Int32.Equals(other.Int32)
|
this.Int32.Equals(input.Int32))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Int64 == other.Int64 ||
|
this.Int64 == input.Int64 ||
|
||||||
this.Int64 != null &&
|
(this.Int64 != null &&
|
||||||
this.Int64.Equals(other.Int64)
|
this.Int64.Equals(input.Int64))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Number == other.Number ||
|
this.Number == input.Number ||
|
||||||
this.Number != null &&
|
(this.Number != null &&
|
||||||
this.Number.Equals(other.Number)
|
this.Number.Equals(input.Number))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Float == other._Float ||
|
this._Float == input._Float ||
|
||||||
this._Float != null &&
|
(this._Float != null &&
|
||||||
this._Float.Equals(other._Float)
|
this._Float.Equals(input._Float))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Double == other._Double ||
|
this._Double == input._Double ||
|
||||||
this._Double != null &&
|
(this._Double != null &&
|
||||||
this._Double.Equals(other._Double)
|
this._Double.Equals(input._Double))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._String == other._String ||
|
this._String == input._String ||
|
||||||
this._String != null &&
|
(this._String != null &&
|
||||||
this._String.Equals(other._String)
|
this._String.Equals(input._String))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Byte == other._Byte ||
|
this._Byte == input._Byte ||
|
||||||
this._Byte != null &&
|
(this._Byte != null &&
|
||||||
this._Byte.Equals(other._Byte)
|
this._Byte.Equals(input._Byte))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Binary == other.Binary ||
|
this.Binary == input.Binary ||
|
||||||
this.Binary != null &&
|
(this.Binary != null &&
|
||||||
this.Binary.Equals(other.Binary)
|
this.Binary.Equals(input.Binary))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Date == other.Date ||
|
this.Date == input.Date ||
|
||||||
this.Date != null &&
|
(this.Date != null &&
|
||||||
this.Date.Equals(other.Date)
|
this.Date.Equals(input.Date))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.DateTime == other.DateTime ||
|
this.DateTime == input.DateTime ||
|
||||||
this.DateTime != null &&
|
(this.DateTime != null &&
|
||||||
this.DateTime.Equals(other.DateTime)
|
this.DateTime.Equals(input.DateTime))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Uuid == other.Uuid ||
|
this.Uuid == input.Uuid ||
|
||||||
this.Uuid != null &&
|
(this.Uuid != null &&
|
||||||
this.Uuid.Equals(other.Uuid)
|
this.Uuid.Equals(input.Uuid))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Password == other.Password ||
|
this.Password == input.Password ||
|
||||||
this.Password != null &&
|
(this.Password != null &&
|
||||||
this.Password.Equals(other.Password)
|
this.Password.Equals(input.Password))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -307,38 +305,36 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Integer != null)
|
if (this.Integer != null)
|
||||||
hash = hash * 59 + this.Integer.GetHashCode();
|
hashCode = hashCode * 59 + this.Integer.GetHashCode();
|
||||||
if (this.Int32 != null)
|
if (this.Int32 != null)
|
||||||
hash = hash * 59 + this.Int32.GetHashCode();
|
hashCode = hashCode * 59 + this.Int32.GetHashCode();
|
||||||
if (this.Int64 != null)
|
if (this.Int64 != null)
|
||||||
hash = hash * 59 + this.Int64.GetHashCode();
|
hashCode = hashCode * 59 + this.Int64.GetHashCode();
|
||||||
if (this.Number != null)
|
if (this.Number != null)
|
||||||
hash = hash * 59 + this.Number.GetHashCode();
|
hashCode = hashCode * 59 + this.Number.GetHashCode();
|
||||||
if (this._Float != null)
|
if (this._Float != null)
|
||||||
hash = hash * 59 + this._Float.GetHashCode();
|
hashCode = hashCode * 59 + this._Float.GetHashCode();
|
||||||
if (this._Double != null)
|
if (this._Double != null)
|
||||||
hash = hash * 59 + this._Double.GetHashCode();
|
hashCode = hashCode * 59 + this._Double.GetHashCode();
|
||||||
if (this._String != null)
|
if (this._String != null)
|
||||||
hash = hash * 59 + this._String.GetHashCode();
|
hashCode = hashCode * 59 + this._String.GetHashCode();
|
||||||
if (this._Byte != null)
|
if (this._Byte != null)
|
||||||
hash = hash * 59 + this._Byte.GetHashCode();
|
hashCode = hashCode * 59 + this._Byte.GetHashCode();
|
||||||
if (this.Binary != null)
|
if (this.Binary != null)
|
||||||
hash = hash * 59 + this.Binary.GetHashCode();
|
hashCode = hashCode * 59 + this.Binary.GetHashCode();
|
||||||
if (this.Date != null)
|
if (this.Date != null)
|
||||||
hash = hash * 59 + this.Date.GetHashCode();
|
hashCode = hashCode * 59 + this.Date.GetHashCode();
|
||||||
if (this.DateTime != null)
|
if (this.DateTime != null)
|
||||||
hash = hash * 59 + this.DateTime.GetHashCode();
|
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||||
if (this.Uuid != null)
|
if (this.Uuid != null)
|
||||||
hash = hash * 59 + this.Uuid.GetHashCode();
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
if (this.Password != null)
|
if (this.Password != null)
|
||||||
hash = hash * 59 + this.Password.GetHashCode();
|
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,35 +74,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as HasOnlyReadOnly);
|
||||||
return this.Equals(obj as HasOnlyReadOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if HasOnlyReadOnly instances are equal
|
/// Returns true if HasOnlyReadOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of HasOnlyReadOnly to be compared</param>
|
/// <param name="input">Instance of HasOnlyReadOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(HasOnlyReadOnly other)
|
public bool Equals(HasOnlyReadOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Bar == other.Bar ||
|
this.Bar == input.Bar ||
|
||||||
this.Bar != null &&
|
(this.Bar != null &&
|
||||||
this.Bar.Equals(other.Bar)
|
this.Bar.Equals(input.Bar))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Foo == other.Foo ||
|
this.Foo == input.Foo ||
|
||||||
this.Foo != null &&
|
(this.Foo != null &&
|
||||||
this.Foo.Equals(other.Foo)
|
this.Foo.Equals(input.Foo))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,16 +110,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Bar != null)
|
if (this.Bar != null)
|
||||||
hash = hash * 59 + this.Bar.GetHashCode();
|
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||||
if (this.Foo != null)
|
if (this.Foo != null)
|
||||||
hash = hash * 59 + this.Foo.GetHashCode();
|
hashCode = hashCode * 59 + this.Foo.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,30 +68,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as List);
|
||||||
return this.Equals(obj as List);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if List instances are equal
|
/// Returns true if List instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of List to be compared</param>
|
/// <param name="input">Instance of List to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(List other)
|
public bool Equals(List input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._123List == other._123List ||
|
this._123List == input._123List ||
|
||||||
this._123List != null &&
|
(this._123List != null &&
|
||||||
this._123List.Equals(other._123List)
|
this._123List.Equals(input._123List))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,14 +99,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._123List != null)
|
if (this._123List != null)
|
||||||
hash = hash * 59 + this._123List.GetHashCode();
|
hashCode = hashCode * 59 + this._123List.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,35 +98,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as MapTest);
|
||||||
return this.Equals(obj as MapTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if MapTest instances are equal
|
/// Returns true if MapTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of MapTest to be compared</param>
|
/// <param name="input">Instance of MapTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(MapTest other)
|
public bool Equals(MapTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.MapMapOfString == other.MapMapOfString ||
|
this.MapMapOfString == input.MapMapOfString ||
|
||||||
this.MapMapOfString != null &&
|
(this.MapMapOfString != null &&
|
||||||
this.MapMapOfString.SequenceEqual(other.MapMapOfString)
|
this.MapMapOfString.SequenceEqual(input.MapMapOfString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MapOfEnumString == other.MapOfEnumString ||
|
this.MapOfEnumString == input.MapOfEnumString ||
|
||||||
this.MapOfEnumString != null &&
|
(this.MapOfEnumString != null &&
|
||||||
this.MapOfEnumString.SequenceEqual(other.MapOfEnumString)
|
this.MapOfEnumString.SequenceEqual(input.MapOfEnumString))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,16 +134,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.MapMapOfString != null)
|
if (this.MapMapOfString != null)
|
||||||
hash = hash * 59 + this.MapMapOfString.GetHashCode();
|
hashCode = hashCode * 59 + this.MapMapOfString.GetHashCode();
|
||||||
if (this.MapOfEnumString != null)
|
if (this.MapOfEnumString != null)
|
||||||
hash = hash * 59 + this.MapOfEnumString.GetHashCode();
|
hashCode = hashCode * 59 + this.MapOfEnumString.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,40 +86,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as MixedPropertiesAndAdditionalPropertiesClass);
|
||||||
return this.Equals(obj as MixedPropertiesAndAdditionalPropertiesClass);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal
|
/// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared</param>
|
/// <param name="input">Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(MixedPropertiesAndAdditionalPropertiesClass other)
|
public bool Equals(MixedPropertiesAndAdditionalPropertiesClass input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Uuid == other.Uuid ||
|
this.Uuid == input.Uuid ||
|
||||||
this.Uuid != null &&
|
(this.Uuid != null &&
|
||||||
this.Uuid.Equals(other.Uuid)
|
this.Uuid.Equals(input.Uuid))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.DateTime == other.DateTime ||
|
this.DateTime == input.DateTime ||
|
||||||
this.DateTime != null &&
|
(this.DateTime != null &&
|
||||||
this.DateTime.Equals(other.DateTime)
|
this.DateTime.Equals(input.DateTime))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Map == other.Map ||
|
this.Map == input.Map ||
|
||||||
this.Map != null &&
|
(this.Map != null &&
|
||||||
this.Map.SequenceEqual(other.Map)
|
this.Map.SequenceEqual(input.Map))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,18 +127,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Uuid != null)
|
if (this.Uuid != null)
|
||||||
hash = hash * 59 + this.Uuid.GetHashCode();
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
if (this.DateTime != null)
|
if (this.DateTime != null)
|
||||||
hash = hash * 59 + this.DateTime.GetHashCode();
|
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||||
if (this.Map != null)
|
if (this.Map != null)
|
||||||
hash = hash * 59 + this.Map.GetHashCode();
|
hashCode = hashCode * 59 + this.Map.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,35 +77,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Model200Response);
|
||||||
return this.Equals(obj as Model200Response);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Model200Response instances are equal
|
/// Returns true if Model200Response instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Model200Response to be compared</param>
|
/// <param name="input">Instance of Model200Response to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Model200Response other)
|
public bool Equals(Model200Response input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Class == other._Class ||
|
this._Class == input._Class ||
|
||||||
this._Class != null &&
|
(this._Class != null &&
|
||||||
this._Class.Equals(other._Class)
|
this._Class.Equals(input._Class))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,16 +113,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
if (this._Class != null)
|
if (this._Class != null)
|
||||||
hash = hash * 59 + this._Class.GetHashCode();
|
hashCode = hashCode * 59 + this._Class.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,30 +68,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ModelClient);
|
||||||
return this.Equals(obj as ModelClient);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ModelClient instances are equal
|
/// Returns true if ModelClient instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ModelClient to be compared</param>
|
/// <param name="input">Instance of ModelClient to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ModelClient other)
|
public bool Equals(ModelClient input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Client == other._Client ||
|
this._Client == input._Client ||
|
||||||
this._Client != null &&
|
(this._Client != null &&
|
||||||
this._Client.Equals(other._Client)
|
this._Client.Equals(input._Client))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,14 +99,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Client != null)
|
if (this._Client != null)
|
||||||
hash = hash * 59 + this._Client.GetHashCode();
|
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,30 +68,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ModelReturn);
|
||||||
return this.Equals(obj as ModelReturn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ModelReturn instances are equal
|
/// Returns true if ModelReturn instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ModelReturn to be compared</param>
|
/// <param name="input">Instance of ModelReturn to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ModelReturn other)
|
public bool Equals(ModelReturn input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Return == other._Return ||
|
this._Return == input._Return ||
|
||||||
this._Return != null &&
|
(this._Return != null &&
|
||||||
this._Return.Equals(other._Return)
|
this._Return.Equals(input._Return))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,14 +99,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Return != null)
|
if (this._Return != null)
|
||||||
hash = hash * 59 + this._Return.GetHashCode();
|
hashCode = hashCode * 59 + this._Return.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,45 +104,43 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Name);
|
||||||
return this.Equals(obj as Name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Name instances are equal
|
/// Returns true if Name instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Name to be compared</param>
|
/// <param name="input">Instance of Name to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Name other)
|
public bool Equals(Name input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Name == other._Name ||
|
this._Name == input._Name ||
|
||||||
this._Name != null &&
|
(this._Name != null &&
|
||||||
this._Name.Equals(other._Name)
|
this._Name.Equals(input._Name))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.SnakeCase == other.SnakeCase ||
|
this.SnakeCase == input.SnakeCase ||
|
||||||
this.SnakeCase != null &&
|
(this.SnakeCase != null &&
|
||||||
this.SnakeCase.Equals(other.SnakeCase)
|
this.SnakeCase.Equals(input.SnakeCase))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Property == other.Property ||
|
this.Property == input.Property ||
|
||||||
this.Property != null &&
|
(this.Property != null &&
|
||||||
this.Property.Equals(other.Property)
|
this.Property.Equals(input.Property))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._123Number == other._123Number ||
|
this._123Number == input._123Number ||
|
||||||
this._123Number != null &&
|
(this._123Number != null &&
|
||||||
this._123Number.Equals(other._123Number)
|
this._123Number.Equals(input._123Number))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,20 +150,18 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Name != null)
|
if (this._Name != null)
|
||||||
hash = hash * 59 + this._Name.GetHashCode();
|
hashCode = hashCode * 59 + this._Name.GetHashCode();
|
||||||
if (this.SnakeCase != null)
|
if (this.SnakeCase != null)
|
||||||
hash = hash * 59 + this.SnakeCase.GetHashCode();
|
hashCode = hashCode * 59 + this.SnakeCase.GetHashCode();
|
||||||
if (this.Property != null)
|
if (this.Property != null)
|
||||||
hash = hash * 59 + this.Property.GetHashCode();
|
hashCode = hashCode * 59 + this.Property.GetHashCode();
|
||||||
if (this._123Number != null)
|
if (this._123Number != null)
|
||||||
hash = hash * 59 + this._123Number.GetHashCode();
|
hashCode = hashCode * 59 + this._123Number.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,30 +68,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as NumberOnly);
|
||||||
return this.Equals(obj as NumberOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if NumberOnly instances are equal
|
/// Returns true if NumberOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of NumberOnly to be compared</param>
|
/// <param name="input">Instance of NumberOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(NumberOnly other)
|
public bool Equals(NumberOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.JustNumber == other.JustNumber ||
|
this.JustNumber == input.JustNumber ||
|
||||||
this.JustNumber != null &&
|
(this.JustNumber != null &&
|
||||||
this.JustNumber.Equals(other.JustNumber)
|
this.JustNumber.Equals(input.JustNumber))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,14 +99,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.JustNumber != null)
|
if (this.JustNumber != null)
|
||||||
hash = hash * 59 + this.JustNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.JustNumber.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,55 +149,53 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Order);
|
||||||
return this.Equals(obj as Order);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Order instances are equal
|
/// Returns true if Order instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Order to be compared</param>
|
/// <param name="input">Instance of Order to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Order other)
|
public bool Equals(Order input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.PetId == other.PetId ||
|
this.PetId == input.PetId ||
|
||||||
this.PetId != null &&
|
(this.PetId != null &&
|
||||||
this.PetId.Equals(other.PetId)
|
this.PetId.Equals(input.PetId))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Quantity == other.Quantity ||
|
this.Quantity == input.Quantity ||
|
||||||
this.Quantity != null &&
|
(this.Quantity != null &&
|
||||||
this.Quantity.Equals(other.Quantity)
|
this.Quantity.Equals(input.Quantity))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ShipDate == other.ShipDate ||
|
this.ShipDate == input.ShipDate ||
|
||||||
this.ShipDate != null &&
|
(this.ShipDate != null &&
|
||||||
this.ShipDate.Equals(other.ShipDate)
|
this.ShipDate.Equals(input.ShipDate))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Status == other.Status ||
|
this.Status == input.Status ||
|
||||||
this.Status != null &&
|
(this.Status != null &&
|
||||||
this.Status.Equals(other.Status)
|
this.Status.Equals(input.Status))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Complete == other.Complete ||
|
this.Complete == input.Complete ||
|
||||||
this.Complete != null &&
|
(this.Complete != null &&
|
||||||
this.Complete.Equals(other.Complete)
|
this.Complete.Equals(input.Complete))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -207,24 +205,22 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.PetId != null)
|
if (this.PetId != null)
|
||||||
hash = hash * 59 + this.PetId.GetHashCode();
|
hashCode = hashCode * 59 + this.PetId.GetHashCode();
|
||||||
if (this.Quantity != null)
|
if (this.Quantity != null)
|
||||||
hash = hash * 59 + this.Quantity.GetHashCode();
|
hashCode = hashCode * 59 + this.Quantity.GetHashCode();
|
||||||
if (this.ShipDate != null)
|
if (this.ShipDate != null)
|
||||||
hash = hash * 59 + this.ShipDate.GetHashCode();
|
hashCode = hashCode * 59 + this.ShipDate.GetHashCode();
|
||||||
if (this.Status != null)
|
if (this.Status != null)
|
||||||
hash = hash * 59 + this.Status.GetHashCode();
|
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
||||||
if (this.Complete != null)
|
if (this.Complete != null)
|
||||||
hash = hash * 59 + this.Complete.GetHashCode();
|
hashCode = hashCode * 59 + this.Complete.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,23 +60,21 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as OuterBoolean);
|
||||||
return this.Equals(obj as OuterBoolean);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if OuterBoolean instances are equal
|
/// Returns true if OuterBoolean instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of OuterBoolean to be compared</param>
|
/// <param name="input">Instance of OuterBoolean to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(OuterBoolean other)
|
public bool Equals(OuterBoolean input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -88,12 +86,10 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
return hashCode;
|
||||||
return hash;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,40 +86,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as OuterComposite);
|
||||||
return this.Equals(obj as OuterComposite);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if OuterComposite instances are equal
|
/// Returns true if OuterComposite instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of OuterComposite to be compared</param>
|
/// <param name="input">Instance of OuterComposite to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(OuterComposite other)
|
public bool Equals(OuterComposite input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.MyNumber == other.MyNumber ||
|
this.MyNumber == input.MyNumber ||
|
||||||
this.MyNumber != null &&
|
(this.MyNumber != null &&
|
||||||
this.MyNumber.Equals(other.MyNumber)
|
this.MyNumber.Equals(input.MyNumber))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MyString == other.MyString ||
|
this.MyString == input.MyString ||
|
||||||
this.MyString != null &&
|
(this.MyString != null &&
|
||||||
this.MyString.Equals(other.MyString)
|
this.MyString.Equals(input.MyString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MyBoolean == other.MyBoolean ||
|
this.MyBoolean == input.MyBoolean ||
|
||||||
this.MyBoolean != null &&
|
(this.MyBoolean != null &&
|
||||||
this.MyBoolean.Equals(other.MyBoolean)
|
this.MyBoolean.Equals(input.MyBoolean))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,18 +127,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.MyNumber != null)
|
if (this.MyNumber != null)
|
||||||
hash = hash * 59 + this.MyNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.MyNumber.GetHashCode();
|
||||||
if (this.MyString != null)
|
if (this.MyString != null)
|
||||||
hash = hash * 59 + this.MyString.GetHashCode();
|
hashCode = hashCode * 59 + this.MyString.GetHashCode();
|
||||||
if (this.MyBoolean != null)
|
if (this.MyBoolean != null)
|
||||||
hash = hash * 59 + this.MyBoolean.GetHashCode();
|
hashCode = hashCode * 59 + this.MyBoolean.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,23 +60,21 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as OuterNumber);
|
||||||
return this.Equals(obj as OuterNumber);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if OuterNumber instances are equal
|
/// Returns true if OuterNumber instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of OuterNumber to be compared</param>
|
/// <param name="input">Instance of OuterNumber to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(OuterNumber other)
|
public bool Equals(OuterNumber input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -88,12 +86,10 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
return hashCode;
|
||||||
return hash;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,23 +60,21 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as OuterString);
|
||||||
return this.Equals(obj as OuterString);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if OuterString instances are equal
|
/// Returns true if OuterString instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of OuterString to be compared</param>
|
/// <param name="input">Instance of OuterString to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(OuterString other)
|
public bool Equals(OuterString input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -88,12 +86,10 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
return hashCode;
|
||||||
return hash;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,55 +162,53 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Pet);
|
||||||
return this.Equals(obj as Pet);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Pet instances are equal
|
/// Returns true if Pet instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Pet to be compared</param>
|
/// <param name="input">Instance of Pet to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Pet other)
|
public bool Equals(Pet input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Category == other.Category ||
|
this.Category == input.Category ||
|
||||||
this.Category != null &&
|
(this.Category != null &&
|
||||||
this.Category.Equals(other.Category)
|
this.Category.Equals(input.Category))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.PhotoUrls == other.PhotoUrls ||
|
this.PhotoUrls == input.PhotoUrls ||
|
||||||
this.PhotoUrls != null &&
|
(this.PhotoUrls != null &&
|
||||||
this.PhotoUrls.SequenceEqual(other.PhotoUrls)
|
this.PhotoUrls.SequenceEqual(input.PhotoUrls))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Tags == other.Tags ||
|
this.Tags == input.Tags ||
|
||||||
this.Tags != null &&
|
(this.Tags != null &&
|
||||||
this.Tags.SequenceEqual(other.Tags)
|
this.Tags.SequenceEqual(input.Tags))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Status == other.Status ||
|
this.Status == input.Status ||
|
||||||
this.Status != null &&
|
(this.Status != null &&
|
||||||
this.Status.Equals(other.Status)
|
this.Status.Equals(input.Status))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,24 +218,22 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.Category != null)
|
if (this.Category != null)
|
||||||
hash = hash * 59 + this.Category.GetHashCode();
|
hashCode = hashCode * 59 + this.Category.GetHashCode();
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
if (this.PhotoUrls != null)
|
if (this.PhotoUrls != null)
|
||||||
hash = hash * 59 + this.PhotoUrls.GetHashCode();
|
hashCode = hashCode * 59 + this.PhotoUrls.GetHashCode();
|
||||||
if (this.Tags != null)
|
if (this.Tags != null)
|
||||||
hash = hash * 59 + this.Tags.GetHashCode();
|
hashCode = hashCode * 59 + this.Tags.GetHashCode();
|
||||||
if (this.Status != null)
|
if (this.Status != null)
|
||||||
hash = hash * 59 + this.Status.GetHashCode();
|
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,35 +75,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ReadOnlyFirst);
|
||||||
return this.Equals(obj as ReadOnlyFirst);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ReadOnlyFirst instances are equal
|
/// Returns true if ReadOnlyFirst instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ReadOnlyFirst to be compared</param>
|
/// <param name="input">Instance of ReadOnlyFirst to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ReadOnlyFirst other)
|
public bool Equals(ReadOnlyFirst input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Bar == other.Bar ||
|
this.Bar == input.Bar ||
|
||||||
this.Bar != null &&
|
(this.Bar != null &&
|
||||||
this.Bar.Equals(other.Bar)
|
this.Bar.Equals(input.Bar))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Baz == other.Baz ||
|
this.Baz == input.Baz ||
|
||||||
this.Baz != null &&
|
(this.Baz != null &&
|
||||||
this.Baz.Equals(other.Baz)
|
this.Baz.Equals(input.Baz))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,16 +111,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Bar != null)
|
if (this.Bar != null)
|
||||||
hash = hash * 59 + this.Bar.GetHashCode();
|
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||||
if (this.Baz != null)
|
if (this.Baz != null)
|
||||||
hash = hash * 59 + this.Baz.GetHashCode();
|
hashCode = hashCode * 59 + this.Baz.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,30 +68,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as SpecialModelName);
|
||||||
return this.Equals(obj as SpecialModelName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if SpecialModelName instances are equal
|
/// Returns true if SpecialModelName instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of SpecialModelName to be compared</param>
|
/// <param name="input">Instance of SpecialModelName to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(SpecialModelName other)
|
public bool Equals(SpecialModelName input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.SpecialPropertyName == other.SpecialPropertyName ||
|
this.SpecialPropertyName == input.SpecialPropertyName ||
|
||||||
this.SpecialPropertyName != null &&
|
(this.SpecialPropertyName != null &&
|
||||||
this.SpecialPropertyName.Equals(other.SpecialPropertyName)
|
this.SpecialPropertyName.Equals(input.SpecialPropertyName))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,14 +99,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.SpecialPropertyName != null)
|
if (this.SpecialPropertyName != null)
|
||||||
hash = hash * 59 + this.SpecialPropertyName.GetHashCode();
|
hashCode = hashCode * 59 + this.SpecialPropertyName.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,35 +77,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Tag);
|
||||||
return this.Equals(obj as Tag);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Tag instances are equal
|
/// Returns true if Tag instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Tag to be compared</param>
|
/// <param name="input">Instance of Tag to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Tag other)
|
public bool Equals(Tag input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,16 +113,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,65 +132,63 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as User);
|
||||||
return this.Equals(obj as User);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if User instances are equal
|
/// Returns true if User instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of User to be compared</param>
|
/// <param name="input">Instance of User to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(User other)
|
public bool Equals(User input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Username == other.Username ||
|
this.Username == input.Username ||
|
||||||
this.Username != null &&
|
(this.Username != null &&
|
||||||
this.Username.Equals(other.Username)
|
this.Username.Equals(input.Username))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.FirstName == other.FirstName ||
|
this.FirstName == input.FirstName ||
|
||||||
this.FirstName != null &&
|
(this.FirstName != null &&
|
||||||
this.FirstName.Equals(other.FirstName)
|
this.FirstName.Equals(input.FirstName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.LastName == other.LastName ||
|
this.LastName == input.LastName ||
|
||||||
this.LastName != null &&
|
(this.LastName != null &&
|
||||||
this.LastName.Equals(other.LastName)
|
this.LastName.Equals(input.LastName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Email == other.Email ||
|
this.Email == input.Email ||
|
||||||
this.Email != null &&
|
(this.Email != null &&
|
||||||
this.Email.Equals(other.Email)
|
this.Email.Equals(input.Email))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Password == other.Password ||
|
this.Password == input.Password ||
|
||||||
this.Password != null &&
|
(this.Password != null &&
|
||||||
this.Password.Equals(other.Password)
|
this.Password.Equals(input.Password))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Phone == other.Phone ||
|
this.Phone == input.Phone ||
|
||||||
this.Phone != null &&
|
(this.Phone != null &&
|
||||||
this.Phone.Equals(other.Phone)
|
this.Phone.Equals(input.Phone))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.UserStatus == other.UserStatus ||
|
this.UserStatus == input.UserStatus ||
|
||||||
this.UserStatus != null &&
|
(this.UserStatus != null &&
|
||||||
this.UserStatus.Equals(other.UserStatus)
|
this.UserStatus.Equals(input.UserStatus))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -200,28 +198,26 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.Username != null)
|
if (this.Username != null)
|
||||||
hash = hash * 59 + this.Username.GetHashCode();
|
hashCode = hashCode * 59 + this.Username.GetHashCode();
|
||||||
if (this.FirstName != null)
|
if (this.FirstName != null)
|
||||||
hash = hash * 59 + this.FirstName.GetHashCode();
|
hashCode = hashCode * 59 + this.FirstName.GetHashCode();
|
||||||
if (this.LastName != null)
|
if (this.LastName != null)
|
||||||
hash = hash * 59 + this.LastName.GetHashCode();
|
hashCode = hashCode * 59 + this.LastName.GetHashCode();
|
||||||
if (this.Email != null)
|
if (this.Email != null)
|
||||||
hash = hash * 59 + this.Email.GetHashCode();
|
hashCode = hashCode * 59 + this.Email.GetHashCode();
|
||||||
if (this.Password != null)
|
if (this.Password != null)
|
||||||
hash = hash * 59 + this.Password.GetHashCode();
|
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||||
if (this.Phone != null)
|
if (this.Phone != null)
|
||||||
hash = hash * 59 + this.Phone.GetHashCode();
|
hashCode = hashCode * 59 + this.Phone.GetHashCode();
|
||||||
if (this.UserStatus != null)
|
if (this.UserStatus != null)
|
||||||
hash = hash * 59 + this.UserStatus.GetHashCode();
|
hashCode = hashCode * 59 + this.UserStatus.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -399,31 +399,29 @@ namespace IO.Swagger.Client
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dynamically cast the object into target type.
|
/// Dynamically cast the object into target type.
|
||||||
/// Ref: http://stackoverflow.com/questions/4925718/c-dynamic-runtime-cast
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">Object to be casted</param>
|
/// <param name="fromObject">Object to be casted</param>
|
||||||
/// <param name="dest">Target type</param>
|
/// <param name="toObject">Target type</param>
|
||||||
/// <returns>Casted object</returns>
|
/// <returns>Casted object</returns>
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert stream to byte array
|
/// Convert stream to byte array
|
||||||
/// Credit/Ref: http://stackoverflow.com/a/221941/677735
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="input">Input stream to be converted</param>
|
/// <param name="inputStream">Input stream to be converted</param>
|
||||||
/// <returns>Byte array</returns>
|
/// <returns>Byte array</returns>
|
||||||
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())
|
using (MemoryStream ms = new MemoryStream())
|
||||||
{
|
{
|
||||||
int read;
|
int count;
|
||||||
while ((read = input.Read(buffer, 0, buffer.Length)) > 0)
|
while ((count = inputStream.Read(buf, 0, buf.Length)) > 0)
|
||||||
{
|
{
|
||||||
ms.Write(buffer, 0, read);
|
ms.Write(buf, 0, count);
|
||||||
}
|
}
|
||||||
return ms.ToArray();
|
return ms.ToArray();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,35 +82,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as AdditionalPropertiesClass);
|
||||||
return this.Equals(obj as AdditionalPropertiesClass);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if AdditionalPropertiesClass instances are equal
|
/// Returns true if AdditionalPropertiesClass instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of AdditionalPropertiesClass to be compared</param>
|
/// <param name="input">Instance of AdditionalPropertiesClass to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(AdditionalPropertiesClass other)
|
public bool Equals(AdditionalPropertiesClass input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.MapProperty == other.MapProperty ||
|
this.MapProperty == input.MapProperty ||
|
||||||
this.MapProperty != null &&
|
(this.MapProperty != null &&
|
||||||
this.MapProperty.SequenceEqual(other.MapProperty)
|
this.MapProperty.SequenceEqual(input.MapProperty))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MapOfMapProperty == other.MapOfMapProperty ||
|
this.MapOfMapProperty == input.MapOfMapProperty ||
|
||||||
this.MapOfMapProperty != null &&
|
(this.MapOfMapProperty != null &&
|
||||||
this.MapOfMapProperty.SequenceEqual(other.MapOfMapProperty)
|
this.MapOfMapProperty.SequenceEqual(input.MapOfMapProperty))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,16 +118,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.MapProperty != null)
|
if (this.MapProperty != null)
|
||||||
hash = hash * 59 + this.MapProperty.GetHashCode();
|
hashCode = hashCode * 59 + this.MapProperty.GetHashCode();
|
||||||
if (this.MapOfMapProperty != null)
|
if (this.MapOfMapProperty != null)
|
||||||
hash = hash * 59 + this.MapOfMapProperty.GetHashCode();
|
hashCode = hashCode * 59 + this.MapOfMapProperty.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -103,35 +103,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Animal);
|
||||||
return this.Equals(obj as Animal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Animal instances are equal
|
/// Returns true if Animal instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Animal to be compared</param>
|
/// <param name="input">Instance of Animal to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Animal other)
|
public bool Equals(Animal input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ClassName == other.ClassName ||
|
this.ClassName == input.ClassName ||
|
||||||
this.ClassName != null &&
|
(this.ClassName != null &&
|
||||||
this.ClassName.Equals(other.ClassName)
|
this.ClassName.Equals(input.ClassName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Color == other.Color ||
|
this.Color == input.Color ||
|
||||||
this.Color != null &&
|
(this.Color != null &&
|
||||||
this.Color.Equals(other.Color)
|
this.Color.Equals(input.Color))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,16 +139,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||||
if (this.Color != null)
|
if (this.Color != null)
|
||||||
hash = hash * 59 + this.Color.GetHashCode();
|
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,23 +65,21 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as AnimalFarm);
|
||||||
return this.Equals(obj as AnimalFarm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if AnimalFarm instances are equal
|
/// Returns true if AnimalFarm instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of AnimalFarm to be compared</param>
|
/// <param name="input">Instance of AnimalFarm to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(AnimalFarm other)
|
public bool Equals(AnimalFarm input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -93,12 +91,10 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
return hashCode;
|
||||||
return hash;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,40 +91,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ApiResponse);
|
||||||
return this.Equals(obj as ApiResponse);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ApiResponse instances are equal
|
/// Returns true if ApiResponse instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ApiResponse to be compared</param>
|
/// <param name="input">Instance of ApiResponse to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ApiResponse other)
|
public bool Equals(ApiResponse input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Code == other.Code ||
|
this.Code == input.Code ||
|
||||||
this.Code != null &&
|
(this.Code != null &&
|
||||||
this.Code.Equals(other.Code)
|
this.Code.Equals(input.Code))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Type == other.Type ||
|
this.Type == input.Type ||
|
||||||
this.Type != null &&
|
(this.Type != null &&
|
||||||
this.Type.Equals(other.Type)
|
this.Type.Equals(input.Type))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Message == other.Message ||
|
this.Message == input.Message ||
|
||||||
this.Message != null &&
|
(this.Message != null &&
|
||||||
this.Message.Equals(other.Message)
|
this.Message.Equals(input.Message))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,18 +132,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Code != null)
|
if (this.Code != null)
|
||||||
hash = hash * 59 + this.Code.GetHashCode();
|
hashCode = hashCode * 59 + this.Code.GetHashCode();
|
||||||
if (this.Type != null)
|
if (this.Type != null)
|
||||||
hash = hash * 59 + this.Type.GetHashCode();
|
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||||||
if (this.Message != null)
|
if (this.Message != null)
|
||||||
hash = hash * 59 + this.Message.GetHashCode();
|
hashCode = hashCode * 59 + this.Message.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,30 +73,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ArrayOfArrayOfNumberOnly);
|
||||||
return this.Equals(obj as ArrayOfArrayOfNumberOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ArrayOfArrayOfNumberOnly instances are equal
|
/// Returns true if ArrayOfArrayOfNumberOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ArrayOfArrayOfNumberOnly to be compared</param>
|
/// <param name="input">Instance of ArrayOfArrayOfNumberOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ArrayOfArrayOfNumberOnly other)
|
public bool Equals(ArrayOfArrayOfNumberOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ArrayArrayNumber == other.ArrayArrayNumber ||
|
this.ArrayArrayNumber == input.ArrayArrayNumber ||
|
||||||
this.ArrayArrayNumber != null &&
|
(this.ArrayArrayNumber != null &&
|
||||||
this.ArrayArrayNumber.SequenceEqual(other.ArrayArrayNumber)
|
this.ArrayArrayNumber.SequenceEqual(input.ArrayArrayNumber))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,14 +104,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ArrayArrayNumber != null)
|
if (this.ArrayArrayNumber != null)
|
||||||
hash = hash * 59 + this.ArrayArrayNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayArrayNumber.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,30 +73,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ArrayOfNumberOnly);
|
||||||
return this.Equals(obj as ArrayOfNumberOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ArrayOfNumberOnly instances are equal
|
/// Returns true if ArrayOfNumberOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ArrayOfNumberOnly to be compared</param>
|
/// <param name="input">Instance of ArrayOfNumberOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ArrayOfNumberOnly other)
|
public bool Equals(ArrayOfNumberOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ArrayNumber == other.ArrayNumber ||
|
this.ArrayNumber == input.ArrayNumber ||
|
||||||
this.ArrayNumber != null &&
|
(this.ArrayNumber != null &&
|
||||||
this.ArrayNumber.SequenceEqual(other.ArrayNumber)
|
this.ArrayNumber.SequenceEqual(input.ArrayNumber))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,14 +104,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ArrayNumber != null)
|
if (this.ArrayNumber != null)
|
||||||
hash = hash * 59 + this.ArrayNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayNumber.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,40 +91,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ArrayTest);
|
||||||
return this.Equals(obj as ArrayTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ArrayTest instances are equal
|
/// Returns true if ArrayTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ArrayTest to be compared</param>
|
/// <param name="input">Instance of ArrayTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ArrayTest other)
|
public bool Equals(ArrayTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ArrayOfString == other.ArrayOfString ||
|
this.ArrayOfString == input.ArrayOfString ||
|
||||||
this.ArrayOfString != null &&
|
(this.ArrayOfString != null &&
|
||||||
this.ArrayOfString.SequenceEqual(other.ArrayOfString)
|
this.ArrayOfString.SequenceEqual(input.ArrayOfString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ArrayArrayOfInteger == other.ArrayArrayOfInteger ||
|
this.ArrayArrayOfInteger == input.ArrayArrayOfInteger ||
|
||||||
this.ArrayArrayOfInteger != null &&
|
(this.ArrayArrayOfInteger != null &&
|
||||||
this.ArrayArrayOfInteger.SequenceEqual(other.ArrayArrayOfInteger)
|
this.ArrayArrayOfInteger.SequenceEqual(input.ArrayArrayOfInteger))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ArrayArrayOfModel == other.ArrayArrayOfModel ||
|
this.ArrayArrayOfModel == input.ArrayArrayOfModel ||
|
||||||
this.ArrayArrayOfModel != null &&
|
(this.ArrayArrayOfModel != null &&
|
||||||
this.ArrayArrayOfModel.SequenceEqual(other.ArrayArrayOfModel)
|
this.ArrayArrayOfModel.SequenceEqual(input.ArrayArrayOfModel))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,18 +132,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ArrayOfString != null)
|
if (this.ArrayOfString != null)
|
||||||
hash = hash * 59 + this.ArrayOfString.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayOfString.GetHashCode();
|
||||||
if (this.ArrayArrayOfInteger != null)
|
if (this.ArrayArrayOfInteger != null)
|
||||||
hash = hash * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayArrayOfInteger.GetHashCode();
|
||||||
if (this.ArrayArrayOfModel != null)
|
if (this.ArrayArrayOfModel != null)
|
||||||
hash = hash * 59 + this.ArrayArrayOfModel.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayArrayOfModel.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -119,55 +119,53 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Capitalization);
|
||||||
return this.Equals(obj as Capitalization);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Capitalization instances are equal
|
/// Returns true if Capitalization instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Capitalization to be compared</param>
|
/// <param name="input">Instance of Capitalization to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Capitalization other)
|
public bool Equals(Capitalization input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.SmallCamel == other.SmallCamel ||
|
this.SmallCamel == input.SmallCamel ||
|
||||||
this.SmallCamel != null &&
|
(this.SmallCamel != null &&
|
||||||
this.SmallCamel.Equals(other.SmallCamel)
|
this.SmallCamel.Equals(input.SmallCamel))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.CapitalCamel == other.CapitalCamel ||
|
this.CapitalCamel == input.CapitalCamel ||
|
||||||
this.CapitalCamel != null &&
|
(this.CapitalCamel != null &&
|
||||||
this.CapitalCamel.Equals(other.CapitalCamel)
|
this.CapitalCamel.Equals(input.CapitalCamel))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.SmallSnake == other.SmallSnake ||
|
this.SmallSnake == input.SmallSnake ||
|
||||||
this.SmallSnake != null &&
|
(this.SmallSnake != null &&
|
||||||
this.SmallSnake.Equals(other.SmallSnake)
|
this.SmallSnake.Equals(input.SmallSnake))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.CapitalSnake == other.CapitalSnake ||
|
this.CapitalSnake == input.CapitalSnake ||
|
||||||
this.CapitalSnake != null &&
|
(this.CapitalSnake != null &&
|
||||||
this.CapitalSnake.Equals(other.CapitalSnake)
|
this.CapitalSnake.Equals(input.CapitalSnake))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.SCAETHFlowPoints == other.SCAETHFlowPoints ||
|
this.SCAETHFlowPoints == input.SCAETHFlowPoints ||
|
||||||
this.SCAETHFlowPoints != null &&
|
(this.SCAETHFlowPoints != null &&
|
||||||
this.SCAETHFlowPoints.Equals(other.SCAETHFlowPoints)
|
this.SCAETHFlowPoints.Equals(input.SCAETHFlowPoints))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ATT_NAME == other.ATT_NAME ||
|
this.ATT_NAME == input.ATT_NAME ||
|
||||||
this.ATT_NAME != null &&
|
(this.ATT_NAME != null &&
|
||||||
this.ATT_NAME.Equals(other.ATT_NAME)
|
this.ATT_NAME.Equals(input.ATT_NAME))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -177,24 +175,22 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.SmallCamel != null)
|
if (this.SmallCamel != null)
|
||||||
hash = hash * 59 + this.SmallCamel.GetHashCode();
|
hashCode = hashCode * 59 + this.SmallCamel.GetHashCode();
|
||||||
if (this.CapitalCamel != null)
|
if (this.CapitalCamel != null)
|
||||||
hash = hash * 59 + this.CapitalCamel.GetHashCode();
|
hashCode = hashCode * 59 + this.CapitalCamel.GetHashCode();
|
||||||
if (this.SmallSnake != null)
|
if (this.SmallSnake != null)
|
||||||
hash = hash * 59 + this.SmallSnake.GetHashCode();
|
hashCode = hashCode * 59 + this.SmallSnake.GetHashCode();
|
||||||
if (this.CapitalSnake != null)
|
if (this.CapitalSnake != null)
|
||||||
hash = hash * 59 + this.CapitalSnake.GetHashCode();
|
hashCode = hashCode * 59 + this.CapitalSnake.GetHashCode();
|
||||||
if (this.SCAETHFlowPoints != null)
|
if (this.SCAETHFlowPoints != null)
|
||||||
hash = hash * 59 + this.SCAETHFlowPoints.GetHashCode();
|
hashCode = hashCode * 59 + this.SCAETHFlowPoints.GetHashCode();
|
||||||
if (this.ATT_NAME != null)
|
if (this.ATT_NAME != null)
|
||||||
hash = hash * 59 + this.ATT_NAME.GetHashCode();
|
hashCode = hashCode * 59 + this.ATT_NAME.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,40 +112,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Cat);
|
||||||
return this.Equals(obj as Cat);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Cat instances are equal
|
/// Returns true if Cat instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Cat to be compared</param>
|
/// <param name="input">Instance of Cat to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Cat other)
|
public bool Equals(Cat input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ClassName == other.ClassName ||
|
this.ClassName == input.ClassName ||
|
||||||
this.ClassName != null &&
|
(this.ClassName != null &&
|
||||||
this.ClassName.Equals(other.ClassName)
|
this.ClassName.Equals(input.ClassName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Color == other.Color ||
|
this.Color == input.Color ||
|
||||||
this.Color != null &&
|
(this.Color != null &&
|
||||||
this.Color.Equals(other.Color)
|
this.Color.Equals(input.Color))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Declawed == other.Declawed ||
|
this.Declawed == input.Declawed ||
|
||||||
this.Declawed != null &&
|
(this.Declawed != null &&
|
||||||
this.Declawed.Equals(other.Declawed)
|
this.Declawed.Equals(input.Declawed))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,18 +153,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||||
if (this.Color != null)
|
if (this.Color != null)
|
||||||
hash = hash * 59 + this.Color.GetHashCode();
|
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||||
if (this.Declawed != null)
|
if (this.Declawed != null)
|
||||||
hash = hash * 59 + this.Declawed.GetHashCode();
|
hashCode = hashCode * 59 + this.Declawed.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,35 +82,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Category);
|
||||||
return this.Equals(obj as Category);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Category instances are equal
|
/// Returns true if Category instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Category to be compared</param>
|
/// <param name="input">Instance of Category to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Category other)
|
public bool Equals(Category input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Id == other.Id ||
|
this.Id == input.Id ||
|
||||||
this.Id != null &&
|
(this.Id != null &&
|
||||||
this.Id.Equals(other.Id)
|
this.Id.Equals(input.Id))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,16 +118,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Id != null)
|
if (this.Id != null)
|
||||||
hash = hash * 59 + this.Id.GetHashCode();
|
hashCode = hashCode * 59 + this.Id.GetHashCode();
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,30 +73,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ClassModel);
|
||||||
return this.Equals(obj as ClassModel);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ClassModel instances are equal
|
/// Returns true if ClassModel instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ClassModel to be compared</param>
|
/// <param name="input">Instance of ClassModel to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ClassModel other)
|
public bool Equals(ClassModel input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Class == other._Class ||
|
this._Class == input._Class ||
|
||||||
this._Class != null &&
|
(this._Class != null &&
|
||||||
this._Class.Equals(other._Class)
|
this._Class.Equals(input._Class))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,14 +104,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Class != null)
|
if (this._Class != null)
|
||||||
hash = hash * 59 + this._Class.GetHashCode();
|
hashCode = hashCode * 59 + this._Class.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,40 +112,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Dog);
|
||||||
return this.Equals(obj as Dog);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Dog instances are equal
|
/// Returns true if Dog instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Dog to be compared</param>
|
/// <param name="input">Instance of Dog to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Dog other)
|
public bool Equals(Dog input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.ClassName == other.ClassName ||
|
this.ClassName == input.ClassName ||
|
||||||
this.ClassName != null &&
|
(this.ClassName != null &&
|
||||||
this.ClassName.Equals(other.ClassName)
|
this.ClassName.Equals(input.ClassName))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Color == other.Color ||
|
this.Color == input.Color ||
|
||||||
this.Color != null &&
|
(this.Color != null &&
|
||||||
this.Color.Equals(other.Color)
|
this.Color.Equals(input.Color))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Breed == other.Breed ||
|
this.Breed == input.Breed ||
|
||||||
this.Breed != null &&
|
(this.Breed != null &&
|
||||||
this.Breed.Equals(other.Breed)
|
this.Breed.Equals(input.Breed))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,18 +153,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.ClassName != null)
|
if (this.ClassName != null)
|
||||||
hash = hash * 59 + this.ClassName.GetHashCode();
|
hashCode = hashCode * 59 + this.ClassName.GetHashCode();
|
||||||
if (this.Color != null)
|
if (this.Color != null)
|
||||||
hash = hash * 59 + this.Color.GetHashCode();
|
hashCode = hashCode * 59 + this.Color.GetHashCode();
|
||||||
if (this.Breed != null)
|
if (this.Breed != null)
|
||||||
hash = hash * 59 + this.Breed.GetHashCode();
|
hashCode = hashCode * 59 + this.Breed.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,35 +123,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as EnumArrays);
|
||||||
return this.Equals(obj as EnumArrays);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if EnumArrays instances are equal
|
/// Returns true if EnumArrays instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of EnumArrays to be compared</param>
|
/// <param name="input">Instance of EnumArrays to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(EnumArrays other)
|
public bool Equals(EnumArrays input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.JustSymbol == other.JustSymbol ||
|
this.JustSymbol == input.JustSymbol ||
|
||||||
this.JustSymbol != null &&
|
(this.JustSymbol != null &&
|
||||||
this.JustSymbol.Equals(other.JustSymbol)
|
this.JustSymbol.Equals(input.JustSymbol))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.ArrayEnum == other.ArrayEnum ||
|
this.ArrayEnum == input.ArrayEnum ||
|
||||||
this.ArrayEnum != null &&
|
(this.ArrayEnum != null &&
|
||||||
this.ArrayEnum.SequenceEqual(other.ArrayEnum)
|
this.ArrayEnum.SequenceEqual(input.ArrayEnum))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,16 +159,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.JustSymbol != null)
|
if (this.JustSymbol != null)
|
||||||
hash = hash * 59 + this.JustSymbol.GetHashCode();
|
hashCode = hashCode * 59 + this.JustSymbol.GetHashCode();
|
||||||
if (this.ArrayEnum != null)
|
if (this.ArrayEnum != null)
|
||||||
hash = hash * 59 + this.ArrayEnum.GetHashCode();
|
hashCode = hashCode * 59 + this.ArrayEnum.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -166,45 +166,43 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as EnumTest);
|
||||||
return this.Equals(obj as EnumTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if EnumTest instances are equal
|
/// Returns true if EnumTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of EnumTest to be compared</param>
|
/// <param name="input">Instance of EnumTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(EnumTest other)
|
public bool Equals(EnumTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.EnumString == other.EnumString ||
|
this.EnumString == input.EnumString ||
|
||||||
this.EnumString != null &&
|
(this.EnumString != null &&
|
||||||
this.EnumString.Equals(other.EnumString)
|
this.EnumString.Equals(input.EnumString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.EnumInteger == other.EnumInteger ||
|
this.EnumInteger == input.EnumInteger ||
|
||||||
this.EnumInteger != null &&
|
(this.EnumInteger != null &&
|
||||||
this.EnumInteger.Equals(other.EnumInteger)
|
this.EnumInteger.Equals(input.EnumInteger))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.EnumNumber == other.EnumNumber ||
|
this.EnumNumber == input.EnumNumber ||
|
||||||
this.EnumNumber != null &&
|
(this.EnumNumber != null &&
|
||||||
this.EnumNumber.Equals(other.EnumNumber)
|
this.EnumNumber.Equals(input.EnumNumber))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.OuterEnum == other.OuterEnum ||
|
this.OuterEnum == input.OuterEnum ||
|
||||||
this.OuterEnum != null &&
|
(this.OuterEnum != null &&
|
||||||
this.OuterEnum.Equals(other.OuterEnum)
|
this.OuterEnum.Equals(input.OuterEnum))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -214,20 +212,18 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.EnumString != null)
|
if (this.EnumString != null)
|
||||||
hash = hash * 59 + this.EnumString.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumString.GetHashCode();
|
||||||
if (this.EnumInteger != null)
|
if (this.EnumInteger != null)
|
||||||
hash = hash * 59 + this.EnumInteger.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumInteger.GetHashCode();
|
||||||
if (this.EnumNumber != null)
|
if (this.EnumNumber != null)
|
||||||
hash = hash * 59 + this.EnumNumber.GetHashCode();
|
hashCode = hashCode * 59 + this.EnumNumber.GetHashCode();
|
||||||
if (this.OuterEnum != null)
|
if (this.OuterEnum != null)
|
||||||
hash = hash * 59 + this.OuterEnum.GetHashCode();
|
hashCode = hashCode * 59 + this.OuterEnum.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -219,90 +219,88 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as FormatTest);
|
||||||
return this.Equals(obj as FormatTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if FormatTest instances are equal
|
/// Returns true if FormatTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of FormatTest to be compared</param>
|
/// <param name="input">Instance of FormatTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(FormatTest other)
|
public bool Equals(FormatTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Integer == other.Integer ||
|
this.Integer == input.Integer ||
|
||||||
this.Integer != null &&
|
(this.Integer != null &&
|
||||||
this.Integer.Equals(other.Integer)
|
this.Integer.Equals(input.Integer))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Int32 == other.Int32 ||
|
this.Int32 == input.Int32 ||
|
||||||
this.Int32 != null &&
|
(this.Int32 != null &&
|
||||||
this.Int32.Equals(other.Int32)
|
this.Int32.Equals(input.Int32))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Int64 == other.Int64 ||
|
this.Int64 == input.Int64 ||
|
||||||
this.Int64 != null &&
|
(this.Int64 != null &&
|
||||||
this.Int64.Equals(other.Int64)
|
this.Int64.Equals(input.Int64))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Number == other.Number ||
|
this.Number == input.Number ||
|
||||||
this.Number != null &&
|
(this.Number != null &&
|
||||||
this.Number.Equals(other.Number)
|
this.Number.Equals(input.Number))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Float == other._Float ||
|
this._Float == input._Float ||
|
||||||
this._Float != null &&
|
(this._Float != null &&
|
||||||
this._Float.Equals(other._Float)
|
this._Float.Equals(input._Float))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Double == other._Double ||
|
this._Double == input._Double ||
|
||||||
this._Double != null &&
|
(this._Double != null &&
|
||||||
this._Double.Equals(other._Double)
|
this._Double.Equals(input._Double))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._String == other._String ||
|
this._String == input._String ||
|
||||||
this._String != null &&
|
(this._String != null &&
|
||||||
this._String.Equals(other._String)
|
this._String.Equals(input._String))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Byte == other._Byte ||
|
this._Byte == input._Byte ||
|
||||||
this._Byte != null &&
|
(this._Byte != null &&
|
||||||
this._Byte.Equals(other._Byte)
|
this._Byte.Equals(input._Byte))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Binary == other.Binary ||
|
this.Binary == input.Binary ||
|
||||||
this.Binary != null &&
|
(this.Binary != null &&
|
||||||
this.Binary.Equals(other.Binary)
|
this.Binary.Equals(input.Binary))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Date == other.Date ||
|
this.Date == input.Date ||
|
||||||
this.Date != null &&
|
(this.Date != null &&
|
||||||
this.Date.Equals(other.Date)
|
this.Date.Equals(input.Date))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.DateTime == other.DateTime ||
|
this.DateTime == input.DateTime ||
|
||||||
this.DateTime != null &&
|
(this.DateTime != null &&
|
||||||
this.DateTime.Equals(other.DateTime)
|
this.DateTime.Equals(input.DateTime))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Uuid == other.Uuid ||
|
this.Uuid == input.Uuid ||
|
||||||
this.Uuid != null &&
|
(this.Uuid != null &&
|
||||||
this.Uuid.Equals(other.Uuid)
|
this.Uuid.Equals(input.Uuid))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Password == other.Password ||
|
this.Password == input.Password ||
|
||||||
this.Password != null &&
|
(this.Password != null &&
|
||||||
this.Password.Equals(other.Password)
|
this.Password.Equals(input.Password))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -312,38 +310,36 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Integer != null)
|
if (this.Integer != null)
|
||||||
hash = hash * 59 + this.Integer.GetHashCode();
|
hashCode = hashCode * 59 + this.Integer.GetHashCode();
|
||||||
if (this.Int32 != null)
|
if (this.Int32 != null)
|
||||||
hash = hash * 59 + this.Int32.GetHashCode();
|
hashCode = hashCode * 59 + this.Int32.GetHashCode();
|
||||||
if (this.Int64 != null)
|
if (this.Int64 != null)
|
||||||
hash = hash * 59 + this.Int64.GetHashCode();
|
hashCode = hashCode * 59 + this.Int64.GetHashCode();
|
||||||
if (this.Number != null)
|
if (this.Number != null)
|
||||||
hash = hash * 59 + this.Number.GetHashCode();
|
hashCode = hashCode * 59 + this.Number.GetHashCode();
|
||||||
if (this._Float != null)
|
if (this._Float != null)
|
||||||
hash = hash * 59 + this._Float.GetHashCode();
|
hashCode = hashCode * 59 + this._Float.GetHashCode();
|
||||||
if (this._Double != null)
|
if (this._Double != null)
|
||||||
hash = hash * 59 + this._Double.GetHashCode();
|
hashCode = hashCode * 59 + this._Double.GetHashCode();
|
||||||
if (this._String != null)
|
if (this._String != null)
|
||||||
hash = hash * 59 + this._String.GetHashCode();
|
hashCode = hashCode * 59 + this._String.GetHashCode();
|
||||||
if (this._Byte != null)
|
if (this._Byte != null)
|
||||||
hash = hash * 59 + this._Byte.GetHashCode();
|
hashCode = hashCode * 59 + this._Byte.GetHashCode();
|
||||||
if (this.Binary != null)
|
if (this.Binary != null)
|
||||||
hash = hash * 59 + this.Binary.GetHashCode();
|
hashCode = hashCode * 59 + this.Binary.GetHashCode();
|
||||||
if (this.Date != null)
|
if (this.Date != null)
|
||||||
hash = hash * 59 + this.Date.GetHashCode();
|
hashCode = hashCode * 59 + this.Date.GetHashCode();
|
||||||
if (this.DateTime != null)
|
if (this.DateTime != null)
|
||||||
hash = hash * 59 + this.DateTime.GetHashCode();
|
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||||
if (this.Uuid != null)
|
if (this.Uuid != null)
|
||||||
hash = hash * 59 + this.Uuid.GetHashCode();
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
if (this.Password != null)
|
if (this.Password != null)
|
||||||
hash = hash * 59 + this.Password.GetHashCode();
|
hashCode = hashCode * 59 + this.Password.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,35 +79,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as HasOnlyReadOnly);
|
||||||
return this.Equals(obj as HasOnlyReadOnly);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if HasOnlyReadOnly instances are equal
|
/// Returns true if HasOnlyReadOnly instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of HasOnlyReadOnly to be compared</param>
|
/// <param name="input">Instance of HasOnlyReadOnly to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(HasOnlyReadOnly other)
|
public bool Equals(HasOnlyReadOnly input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Bar == other.Bar ||
|
this.Bar == input.Bar ||
|
||||||
this.Bar != null &&
|
(this.Bar != null &&
|
||||||
this.Bar.Equals(other.Bar)
|
this.Bar.Equals(input.Bar))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Foo == other.Foo ||
|
this.Foo == input.Foo ||
|
||||||
this.Foo != null &&
|
(this.Foo != null &&
|
||||||
this.Foo.Equals(other.Foo)
|
this.Foo.Equals(input.Foo))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,16 +115,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Bar != null)
|
if (this.Bar != null)
|
||||||
hash = hash * 59 + this.Bar.GetHashCode();
|
hashCode = hashCode * 59 + this.Bar.GetHashCode();
|
||||||
if (this.Foo != null)
|
if (this.Foo != null)
|
||||||
hash = hash * 59 + this.Foo.GetHashCode();
|
hashCode = hashCode * 59 + this.Foo.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,30 +73,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as List);
|
||||||
return this.Equals(obj as List);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if List instances are equal
|
/// Returns true if List instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of List to be compared</param>
|
/// <param name="input">Instance of List to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(List other)
|
public bool Equals(List input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._123List == other._123List ||
|
this._123List == input._123List ||
|
||||||
this._123List != null &&
|
(this._123List != null &&
|
||||||
this._123List.Equals(other._123List)
|
this._123List.Equals(input._123List))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,14 +104,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._123List != null)
|
if (this._123List != null)
|
||||||
hash = hash * 59 + this._123List.GetHashCode();
|
hashCode = hashCode * 59 + this._123List.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -103,35 +103,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as MapTest);
|
||||||
return this.Equals(obj as MapTest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if MapTest instances are equal
|
/// Returns true if MapTest instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of MapTest to be compared</param>
|
/// <param name="input">Instance of MapTest to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(MapTest other)
|
public bool Equals(MapTest input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.MapMapOfString == other.MapMapOfString ||
|
this.MapMapOfString == input.MapMapOfString ||
|
||||||
this.MapMapOfString != null &&
|
(this.MapMapOfString != null &&
|
||||||
this.MapMapOfString.SequenceEqual(other.MapMapOfString)
|
this.MapMapOfString.SequenceEqual(input.MapMapOfString))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.MapOfEnumString == other.MapOfEnumString ||
|
this.MapOfEnumString == input.MapOfEnumString ||
|
||||||
this.MapOfEnumString != null &&
|
(this.MapOfEnumString != null &&
|
||||||
this.MapOfEnumString.SequenceEqual(other.MapOfEnumString)
|
this.MapOfEnumString.SequenceEqual(input.MapOfEnumString))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,16 +139,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.MapMapOfString != null)
|
if (this.MapMapOfString != null)
|
||||||
hash = hash * 59 + this.MapMapOfString.GetHashCode();
|
hashCode = hashCode * 59 + this.MapMapOfString.GetHashCode();
|
||||||
if (this.MapOfEnumString != null)
|
if (this.MapOfEnumString != null)
|
||||||
hash = hash * 59 + this.MapOfEnumString.GetHashCode();
|
hashCode = hashCode * 59 + this.MapOfEnumString.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,40 +91,38 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as MixedPropertiesAndAdditionalPropertiesClass);
|
||||||
return this.Equals(obj as MixedPropertiesAndAdditionalPropertiesClass);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal
|
/// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared</param>
|
/// <param name="input">Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(MixedPropertiesAndAdditionalPropertiesClass other)
|
public bool Equals(MixedPropertiesAndAdditionalPropertiesClass input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Uuid == other.Uuid ||
|
this.Uuid == input.Uuid ||
|
||||||
this.Uuid != null &&
|
(this.Uuid != null &&
|
||||||
this.Uuid.Equals(other.Uuid)
|
this.Uuid.Equals(input.Uuid))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.DateTime == other.DateTime ||
|
this.DateTime == input.DateTime ||
|
||||||
this.DateTime != null &&
|
(this.DateTime != null &&
|
||||||
this.DateTime.Equals(other.DateTime)
|
this.DateTime.Equals(input.DateTime))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this.Map == other.Map ||
|
this.Map == input.Map ||
|
||||||
this.Map != null &&
|
(this.Map != null &&
|
||||||
this.Map.SequenceEqual(other.Map)
|
this.Map.SequenceEqual(input.Map))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,18 +132,16 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Uuid != null)
|
if (this.Uuid != null)
|
||||||
hash = hash * 59 + this.Uuid.GetHashCode();
|
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
|
||||||
if (this.DateTime != null)
|
if (this.DateTime != null)
|
||||||
hash = hash * 59 + this.DateTime.GetHashCode();
|
hashCode = hashCode * 59 + this.DateTime.GetHashCode();
|
||||||
if (this.Map != null)
|
if (this.Map != null)
|
||||||
hash = hash * 59 + this.Map.GetHashCode();
|
hashCode = hashCode * 59 + this.Map.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,35 +82,33 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as Model200Response);
|
||||||
return this.Equals(obj as Model200Response);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if Model200Response instances are equal
|
/// Returns true if Model200Response instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of Model200Response to be compared</param>
|
/// <param name="input">Instance of Model200Response to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(Model200Response other)
|
public bool Equals(Model200Response input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this.Name == other.Name ||
|
this.Name == input.Name ||
|
||||||
this.Name != null &&
|
(this.Name != null &&
|
||||||
this.Name.Equals(other.Name)
|
this.Name.Equals(input.Name))
|
||||||
) &&
|
) &&
|
||||||
(
|
(
|
||||||
this._Class == other._Class ||
|
this._Class == input._Class ||
|
||||||
this._Class != null &&
|
(this._Class != null &&
|
||||||
this._Class.Equals(other._Class)
|
this._Class.Equals(input._Class))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,16 +118,14 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this.Name != null)
|
if (this.Name != null)
|
||||||
hash = hash * 59 + this.Name.GetHashCode();
|
hashCode = hashCode * 59 + this.Name.GetHashCode();
|
||||||
if (this._Class != null)
|
if (this._Class != null)
|
||||||
hash = hash * 59 + this._Class.GetHashCode();
|
hashCode = hashCode * 59 + this._Class.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,30 +73,28 @@ namespace IO.Swagger.Model
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if objects are equal
|
/// Returns true if objects are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="obj">Object to be compared</param>
|
/// <param name="input">Object to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
return this.Equals(input as ModelClient);
|
||||||
return this.Equals(obj as ModelClient);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns true if ModelClient instances are equal
|
/// Returns true if ModelClient instances are equal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="other">Instance of ModelClient to be compared</param>
|
/// <param name="input">Instance of ModelClient to be compared</param>
|
||||||
/// <returns>Boolean</returns>
|
/// <returns>Boolean</returns>
|
||||||
public bool Equals(ModelClient other)
|
public bool Equals(ModelClient input)
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/10454552/677735
|
if (input == null)
|
||||||
if (other == null)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
(
|
(
|
||||||
this._Client == other._Client ||
|
this._Client == input._Client ||
|
||||||
this._Client != null &&
|
(this._Client != null &&
|
||||||
this._Client.Equals(other._Client)
|
this._Client.Equals(input._Client))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,14 +104,12 @@ namespace IO.Swagger.Model
|
|||||||
/// <returns>Hash code</returns>
|
/// <returns>Hash code</returns>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// credit: http://stackoverflow.com/a/263416/677735
|
|
||||||
unchecked // Overflow is fine, just wrap
|
unchecked // Overflow is fine, just wrap
|
||||||
{
|
{
|
||||||
int hash = 41;
|
int hashCode = 41;
|
||||||
// Suitable nullity checks etc, of course :)
|
|
||||||
if (this._Client != null)
|
if (this._Client != null)
|
||||||
hash = hash * 59 + this._Client.GetHashCode();
|
hashCode = hashCode * 59 + this._Client.GetHashCode();
|
||||||
return hash;
|
return hashCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user