/// <summary> /// Returns true if MethodRequestAndResponse instances are equal /// </summary> /// <param name="other">Instance of MethodRequestAndResponse to be compared</param> /// <returns>Boolean</returns> public bool Equals(MethodRequestAndResponse other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( RequestPayload == other.RequestPayload || RequestPayload != null && RequestPayload.Equals(other.RequestPayload) ) && ( ResponsePayload == other.ResponsePayload || ResponsePayload != null && ResponsePayload.Equals(other.ResponsePayload) ) && ( StatusCode == other.StatusCode || StatusCode != null && StatusCode.Equals(other.StatusCode) )); }
/// <summary> /// Returns true if MethodRequestResponse instances are equal /// </summary> /// <param name="other">Instance of MethodRequestResponse to be compared</param> /// <returns>Boolean</returns> public bool Equals(MethodRequestResponse other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( RequestPayload == other.RequestPayload || RequestPayload != null && RequestPayload.Equals(other.RequestPayload) ) && ( ResponseId == other.ResponseId || ResponseId != null && ResponseId.Equals(other.ResponseId) )); }