/// <summary> /// Returns true if BookingConfirmedEvent instances are equal /// </summary> /// <param name="other">Instance of BookingConfirmedEvent to be compared</param> /// <returns>Boolean</returns> public bool Equals(BookingConfirmedEvent other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( BookingRequestId == other.BookingRequestId || BookingRequestId != null && BookingRequestId.Equals(other.BookingRequestId) ) && ( BookingId == other.BookingId || BookingId != null && BookingId.Equals(other.BookingId) ) && ( AgencyId == other.AgencyId || AgencyId != null && AgencyId.Equals(other.AgencyId) ) && ( Cost == other.Cost || Cost.Equals(other.Cost) )); }
/// <summary> /// Returns true if WorkerOfferedEvent instances are equal /// </summary> /// <param name="other">Instance of WorkerOfferedEvent to be compared</param> /// <returns>Boolean</returns> public bool Equals(WorkerOfferedEvent other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ObjectType == other.ObjectType || ObjectType != null && ObjectType.Equals(other.ObjectType) ) && ( BookingRequestId == other.BookingRequestId || BookingRequestId != null && BookingRequestId.Equals(other.BookingRequestId) ) && ( Agency == other.Agency || Agency != null && Agency.Equals(other.Agency) )); }
/// <summary> /// Returns true if WorkerOffer instances are equal /// </summary> /// <param name="other">Instance of WorkerOffer to be compared</param> /// <returns>Boolean</returns> public bool Equals(WorkerOffer other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( BookingRequestId == other.BookingRequestId || BookingRequestId != null && BookingRequestId.Equals(other.BookingRequestId) ) && ( Worker == other.Worker || Worker != null && Worker.Equals(other.Worker) ) && ( Agency == other.Agency || Agency != null && Agency.Equals(other.Agency) ) && ( QualificationStatus == other.QualificationStatus || QualificationStatus.Equals(other.QualificationStatus) )); }