public StudyJobInfo(TTarget target, LanguageEdit language, DateTime expirationDate, object criteria) { Id = Guid.NewGuid(); Target = target; ExpirationDate = expirationDate; Criteria = new StudyJobCriteria(language); }
/// <summary> /// Creates a new StudyJobInfo object with the given "immutable" parameters. /// Product however can be set once externally (e.g. when the job is done). /// ExpectedPrecision defaults to 0, ie anything will do. /// </summary> public StudyJobInfo(TTarget target, LanguageEdit language, DateTime expirationDate, double expectedPrecision) { Id = Guid.NewGuid(); Target = target; ExpirationDate = expirationDate; Criteria = new StudyJobCriteria(language, expectedPrecision); }