samples/server/petstore/aspnetcore/src/IO.Swagger/Models/ApiResponse.cs
/// <summary>
/// Returns true if ApiResponse instances are equal
/// </summary>
/// <param name="other">Instance of ApiResponse to be compared</param>
/// <returns>Boolean</returns>
Returns true if ApiResponse instances are equal
Returns true if ApiResponse instances are equal
public bool Equals(ApiResponse other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return 
                (
                    Code == other.Code ||
                    Code != null &&
                    Code.Equals(other.Code)
                ) && 
                (
                    Type == other.Type ||
                    Type != null &&
                    Type.Equals(other.Type)
                ) && 
                (
                    Message == other.Message ||
                    Message != null &&
                    Message.Equals(other.Message)
                );
        }
public bool Equals ( ApiResponse other ) { if ( ReferenceEquals ( null , other ) ) return false ; if ( ReferenceEquals ( this , other ) ) return true ; return ( Code == other . Code || Code != null && Code . Equals ( other . Code ) ) && ( Type == other . Type || Type != null && Type . Equals ( other . Type ) ) && ( Message == other . Message || Message != null && Message . Equals ( other . Message ) ) ; }
Returns true if ApiResponse instances are equal
Returns true if ApiResponse instances are equal
None
other
ApiResponse
Instance of ApiResponse to be compared
Instance of ApiResponse to be compared