/// <summary> /// Returns true if StoreSpecialHour instances are equal /// </summary> /// <param name="input">Instance of StoreSpecialHour to be compared</param> /// <returns>Boolean</returns> public bool Equals(StoreSpecialHour input) { if (input == null) { return(false); } return (( Date == input.Date || Date != null && Date.Equals(input.Date) ) && ( Closed == input.Closed || Closed != null && Closed.Equals(input.Closed) ) && ( StartTime == input.StartTime || StartTime != null && StartTime.Equals(input.StartTime) ) && ( EndTime == input.EndTime || EndTime != null && EndTime.Equals(input.EndTime) )); }
/// <summary> /// Returns true if OrderMarketChange instances are equal /// </summary> /// <param name="other">Instance of OrderMarketChange to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrderMarketChange other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return((AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId)) && (Orc == other.Orc || Orc != null && Orc.SequenceEqual(other.Orc)) && (Closed == other.Closed || Closed != null && Closed.Equals(other.Closed)) && (Id == other.Id || Id != null && Id.Equals(other.Id)) && (FullImage == other.FullImage || FullImage != null && FullImage.Equals(other.FullImage))); }