public override int GetHashCode() { unchecked { int hashCode = ExtractionJobIdentifier.GetHashCode(); hashCode = (hashCode * 397) ^ ProjectNumber.GetHashCode(); hashCode = (hashCode * 397) ^ ExtractionDirectory.GetHashCode(); hashCode = (hashCode * 397) ^ JobSubmittedAt.GetHashCode(); hashCode = (hashCode * 397) ^ IsIdentifiableExtraction.GetHashCode(); hashCode = (hashCode * 397) ^ IsNoFilterExtraction.GetHashCode(); return(hashCode); } }
protected bool Equals(MongoExtractJobDoc other) { return ExtractionJobIdentifier.Equals(other.ExtractionJobIdentifier) && Equals(Header, other.Header) && ProjectNumber == other.ProjectNumber && JobStatus == other.JobStatus && ExtractionDirectory == other.ExtractionDirectory && JobSubmittedAt.Equals(other.JobSubmittedAt) && KeyTag == other.KeyTag && KeyCount == other.KeyCount && ExtractionModality == other.ExtractionModality && IsIdentifiableExtraction == other.IsIdentifiableExtraction && IsNoFilterExtraction == other.IsNoFilterExtraction && Equals(FailedJobInfoDoc, other.FailedJobInfoDoc); }
public bool Equals(ExtractMessage other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(ExtractionJobIdentifier.Equals(other.ExtractionJobIdentifier) && string.Equals(ProjectNumber, other.ProjectNumber) && string.Equals(ExtractionDirectory, other.ExtractionDirectory) && JobSubmittedAt.Equals(other.JobSubmittedAt) && IsIdentifiableExtraction == other.IsIdentifiableExtraction && IsNoFilterExtraction == other.IsNoFilterExtraction); }
public override int GetHashCode() { unchecked { int hashCode = ExtractionJobIdentifier.GetHashCode(); hashCode = (hashCode * 397) ^ Header.GetHashCode(); hashCode = (hashCode * 397) ^ ProjectNumber.GetHashCode(); hashCode = (hashCode * 397) ^ (int)JobStatus; hashCode = (hashCode * 397) ^ ExtractionDirectory.GetHashCode(); hashCode = (hashCode * 397) ^ JobSubmittedAt.GetHashCode(); hashCode = (hashCode * 397) ^ KeyTag.GetHashCode(); hashCode = (hashCode * 397) ^ (int)KeyCount; hashCode = (hashCode * 397) ^ (ExtractionModality != null ? ExtractionModality.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsIdentifiableExtraction.GetHashCode(); hashCode = (hashCode * 397) ^ IsNoFilterExtraction.GetHashCode(); hashCode = (hashCode * 397) ^ (FailedJobInfoDoc != null ? FailedJobInfoDoc.GetHashCode() : 0); return hashCode; } }