public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is InvoicePaymentRequest other && ((Uid == null && other.Uid == null) || (Uid?.Equals(other.Uid) == true)) && ((RequestMethod == null && other.RequestMethod == null) || (RequestMethod?.Equals(other.RequestMethod) == true)) && ((RequestType == null && other.RequestType == null) || (RequestType?.Equals(other.RequestType) == true)) && ((DueDate == null && other.DueDate == null) || (DueDate?.Equals(other.DueDate) == true)) && ((FixedAmountRequestedMoney == null && other.FixedAmountRequestedMoney == null) || (FixedAmountRequestedMoney?.Equals(other.FixedAmountRequestedMoney) == true)) && ((PercentageRequested == null && other.PercentageRequested == null) || (PercentageRequested?.Equals(other.PercentageRequested) == true)) && ((TippingEnabled == null && other.TippingEnabled == null) || (TippingEnabled?.Equals(other.TippingEnabled) == true)) && ((AutomaticPaymentSource == null && other.AutomaticPaymentSource == null) || (AutomaticPaymentSource?.Equals(other.AutomaticPaymentSource) == true)) && ((CardId == null && other.CardId == null) || (CardId?.Equals(other.CardId) == true)) && ((Reminders == null && other.Reminders == null) || (Reminders?.Equals(other.Reminders) == true)) && ((ComputedAmountMoney == null && other.ComputedAmountMoney == null) || (ComputedAmountMoney?.Equals(other.ComputedAmountMoney) == true)) && ((TotalCompletedAmountMoney == null && other.TotalCompletedAmountMoney == null) || (TotalCompletedAmountMoney?.Equals(other.TotalCompletedAmountMoney) == true)) && ((RoundingAdjustmentIncludedMoney == null && other.RoundingAdjustmentIncludedMoney == null) || (RoundingAdjustmentIncludedMoney?.Equals(other.RoundingAdjustmentIncludedMoney) == true))); }
/// <summary> /// Returns true if Note instances are equal /// </summary> /// <param name="other">Instance of Note to be compared</param> /// <returns>Boolean</returns> public bool Equals(Note other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Title == other.Title || Title != null && Title.Equals(other.Title) ) && ( Description == other.Description || Description != null && Description.Equals(other.Description) ) && ( Importance == other.Importance || Importance != null && Importance.Equals(other.Importance) ) && ( CreatedDate == other.CreatedDate || CreatedDate != null && CreatedDate.Equals(other.CreatedDate) ) && ( DueDate == other.DueDate || DueDate != null && DueDate.Equals(other.DueDate) ) && ( FinishedDate == other.FinishedDate || FinishedDate != null && FinishedDate.Equals(other.FinishedDate) ) && ( Finished == other.Finished || Finished != null && Finished.Equals(other.Finished) )); }
public bool Equals(InvoiceDto other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } // TODO ArBy redemptionDate equality return(Equals(Id, other.Id) && IssueDate.Equals(other.IssueDate) && DueDate.Equals(other.DueDate) && RedemptionDate.Equals(other.RedemptionDate) && Equals(Items, other.Items) && Equals(Payments, other.Payments) && Equals(Supplier, other.Supplier) && Equals(Receiver, other.Receiver)); }
public bool Equals(Issue other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && Equals(Project, other.Project) && Equals(Tracker, other.Tracker) && Equals(Status, other.Status) && Equals(Priority, other.Priority) && Equals(Author, other.Author) && Equals(Category, other.Category) && string.Equals(Subject, other.Subject) && string.Equals(Description, other.Description) && StartDate.Equals(other.StartDate) && DueDate.Equals(other.DueDate) && DoneRatio.Equals(other.DoneRatio) && PrivateNotes == other.PrivateNotes && EstimatedHours.Equals(other.EstimatedHours) && SpentHours.Equals(other.SpentHours) && Equals(CustomFields, other.CustomFields) && CreatedOn.Equals(other.CreatedOn) && UpdatedOn.Equals(other.UpdatedOn) && ClosedOn.Equals(other.ClosedOn) && string.Equals(Notes, other.Notes) && Equals(AssignedTo, other.AssignedTo) && Equals(ParentIssue, other.ParentIssue) && Equals(FixedVersion, other.FixedVersion) && IsPrivate == other.IsPrivate && TotalSpentHours.Equals(other.TotalSpentHours) && TotalEstimatedHours.Equals(other.TotalEstimatedHours) && Equals(Journals, other.Journals) && Equals(Changesets, other.Changesets) && Equals(Attachments, other.Attachments) && Equals(Relations, other.Relations) && Equals(Children, other.Children) && Equals(Uploads, other.Uploads) && Equals(Watchers, other.Watchers)); }