/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Upcs != null) { hashCode = hashCode * 59 + Upcs.GetHashCode(); } if (Eans != null) { hashCode = hashCode * 59 + Eans.GetHashCode(); } if (Asins != null) { hashCode = hashCode * 59 + Asins.GetHashCode(); } if (Message != null) { hashCode = hashCode * 59 + Message.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if InlineResponse200 instances are equal /// </summary> /// <param name="other">Instance of InlineResponse200 to be compared</param> /// <returns>Boolean</returns> public bool Equals(InlineResponse200 other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Upcs == other.Upcs || Upcs != null && other.Upcs != null && Upcs.SequenceEqual(other.Upcs) ) && ( Eans == other.Eans || Eans != null && other.Eans != null && Eans.SequenceEqual(other.Eans) ) && ( Asins == other.Asins || Asins != null && other.Asins != null && Asins.SequenceEqual(other.Asins) ) && ( Message == other.Message || Message != null && Message.Equals(other.Message) )); }