/// <summary> /// Returns true if DocumentBase instances are equal /// </summary> /// <param name="other">Instance of DocumentBase to be compared</param> /// <returns>Boolean</returns> public bool Equals(DocumentBase other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rev == other.Rev || Rev != null && Rev.Equals(other.Rev) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) )); }
/// <summary> /// Returns true if SeriesModel instances are equal /// </summary> /// <param name="other">Instance of SeriesModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(SeriesModel other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rev == other.Rev || Rev != null && Rev.Equals(other.Rev) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Start == other.Start || Start != null && Start.Equals(other.Start) ) && ( End == other.End || End != null && End.Equals(other.End) ) && ( Repeat == other.Repeat || Repeat.Equals(other.Repeat) ) && ( EndBy == other.EndBy || EndBy != null && EndBy.Equals(other.EndBy) )); }
/// <summary> /// Returns true if Event instances are equal /// </summary> /// <param name="other">Instance of Event to be compared</param> /// <returns>Boolean</returns> public bool Equals(Event other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rev == other.Rev || Rev != null && Rev.Equals(other.Rev) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Source == other.Source || Source != null && Source.Equals(other.Source) ) && ( Start == other.Start || Start != null && Start.Equals(other.Start) ) && ( End == other.End || End != null && End.Equals(other.End) ) && ( Classification == other.Classification || Classification != null && other.Classification != null && Classification.SequenceEqual(other.Classification) ) && ( IsCrash == other.IsCrash || IsCrash.Equals(other.IsCrash) ) && ( IsAutoAssigned == other.IsAutoAssigned || IsAutoAssigned.Equals(other.IsAutoAssigned) ) && ( Properties == other.Properties || Properties != null && other.Properties != null && Properties.SequenceEqual(other.Properties) )); }