/// <summary> /// Returns true if Proposal instances are equal /// </summary> /// <param name="other">Instance of Proposal to be compared</param> /// <returns>Boolean</returns> public bool Equals(Proposal other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProposalId == other.ProposalId || ProposalId != null && ProposalId.Equals(other.ProposalId) ) && ( IssuerId == other.IssuerId || IssuerId != null && IssuerId.Equals(other.IssuerId) ) && ( State == other.State || State != null && State.Equals(other.State) ) && ( PrevProposalId == other.PrevProposalId || PrevProposalId != null && PrevProposalId.Equals(other.PrevProposalId) )); }
/// <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 (ProposalId != null) { hashCode = hashCode * 59 + ProposalId.GetHashCode(); } if (IssuerId != null) { hashCode = hashCode * 59 + IssuerId.GetHashCode(); } if (State != null) { hashCode = hashCode * 59 + State.GetHashCode(); } if (PrevProposalId != null) { hashCode = hashCode * 59 + PrevProposalId.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if InlineObject instances are equal /// </summary> /// <param name="other">Instance of InlineObject to be compared</param> /// <returns>Boolean</returns> public bool Equals(InlineObject other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProposalId == other.ProposalId || ProposalId != null && ProposalId.Equals(other.ProposalId) ) && ( Times == other.Times || Times != null && Times.Equals(other.Times) ) && ( Break == other.Break || Break.Equals(other.Break) )); }
public override int GetHashCode() { int hash = 1; if (ProfileId.Length != 0) { hash ^= ProfileId.GetHashCode(); } if (ProposalId.Length != 0) { hash ^= ProposalId.GetHashCode(); } if (ResultId.Length != 0) { hash ^= ResultId.GetHashCode(); } if (matchObject_ != null) { hash ^= MatchObject.GetHashCode(); } if (Timestamp.Length != 0) { hash ^= Timestamp.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <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 (ProposalId != null) { hashCode = hashCode * 59 + ProposalId.GetHashCode(); } if (Times != null) { hashCode = hashCode * 59 + Times.GetHashCode(); } hashCode = hashCode * 59 + Break.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (OwnerAddress.Length != 0) { hash ^= OwnerAddress.GetHashCode(); } if (ProposalId != 0L) { hash ^= ProposalId.GetHashCode(); } if (IsAddApproval != false) { hash ^= IsAddApproval.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Returns true if BookingEvent instances are equal /// </summary> /// <param name="other">Instance of BookingEvent to be compared</param> /// <returns>Boolean</returns> public bool Equals(BookingEvent other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProposalId == other.ProposalId || ProposalId != null && ProposalId.Equals(other.ProposalId) ) && ( VacancyId == other.VacancyId || VacancyId != null && VacancyId.Equals(other.VacancyId) )); }
/// <summary> /// Returns true if Agreement instances are equal /// </summary> /// <param name="other">Instance of Agreement to be compared</param> /// <returns>Boolean</returns> public bool Equals(Agreement other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProposalId == other.ProposalId || ProposalId != null && ProposalId.Equals(other.ProposalId) ) && ( ExpirationDate == other.ExpirationDate || ExpirationDate != null && ExpirationDate.Equals(other.ExpirationDate) )); }
/// <summary> /// Returns true if AgreementProposal instances are equal /// </summary> /// <param name="other">Instance of AgreementProposal to be compared</param> /// <returns>Boolean</returns> public bool Equals(AgreementProposal other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProposalId == other.ProposalId || ProposalId != null && ProposalId.Equals(other.ProposalId) ) && ( ValidTo == other.ValidTo || ValidTo != null && ValidTo.Equals(other.ValidTo) )); }