public MongoCompletedExtractJobDoc( [NotNull] MongoExtractJobDoc extractJobDoc, DateTime completedAt ) : base(extractJobDoc) { JobStatus = ExtractJobStatus.Completed; CompletedAt = (completedAt != default) ? completedAt : throw new ArgumentException(nameof(completedAt)); }
/// <summary> /// Copy constructor /// </summary> public MongoExtractJobDoc(MongoExtractJobDoc existing) { ExtractionJobIdentifier = existing.ExtractionJobIdentifier; Header = existing.Header; ProjectNumber = existing.ProjectNumber; JobStatus = existing.JobStatus; ExtractionDirectory = existing.ExtractionDirectory; JobSubmittedAt = existing.JobSubmittedAt; KeyTag = existing.KeyTag; KeyCount = existing.KeyCount; ExtractionModality = existing.ExtractionModality; IsIdentifiableExtraction = existing.IsIdentifiableExtraction; FailedJobInfoDoc = existing.FailedJobInfoDoc; IsNoFilterExtraction = existing.IsNoFilterExtraction; }
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); }