namespace PARR.API.Contracts.V1.Responses { public class JobBaseResponse { public Guid Id { get; set; } public required string Name { get; set; } public int? MinValueRelationships { get; set; } public int? MaxValueRelationships { get; set; } public bool? isParentRelationships { get; set; } public required string TemplateNameMask { get; set; } public required string WorkName { get; set; } public required string WorkGroupMask { get; set; } public required string ResponseAreaMask { get; set; } } public class JobResponse : JobBaseResponse { public TnkResponse? Tnk { get; set; } public JobGroupBaseResponse? Group { get; set; } public int? TemplatesCount { get; set; } public List? UnitFilters { get; set; } public JobAutoControlResponse? AutoControl { get; set; } public MatchingStatusResponse? MatchingStatus { get; set; } #region Статистика Old //public TemplateStats? TemplateStatistics { get; set; } //public ScheduleStats? ScheduleStatistics { get; set; } #endregion } public class UnitFilterResponse { public required Guid Id { get; set; } public required string UnitFilterMask { get; set; } public List? FieldFilters { get; set; } public List? RelationshipFilters { get; set; } } public class FieldFilterResponse { public required Guid Id { get; set; } public required FieldResponse Field { get; set; } public string? ValueMask { get; set; } public bool IsInverse { get; set; } } public class RelationshipFilterResponse { public required FieldResponse Field { get; set; } public bool? IsParent { get; set; } public string? ValueMask { get; set; } public bool? IsFullMatch { get; set; } public bool? IsInverse { get; set; } } public class TemplateStats { /// /// Активированных шаблонов /// public int Activated { get; set; } /// /// Синхронизировано шаблонов (TaskStatus = 30/Ok) /// public int Synchronized { get; set; } /// /// Ошибок синхронизации (RobotStatus = 33/Error) /// public int Errors { get; set; } } public class ScheduleStats { /// /// Активированных шаблонов /// public int Activated { get; set; } /// /// Синхронизировано шаблонов (TaskStatus = 30/Ok) /// public int Synchronized { get; set; } /// /// Ошибок синхронизации (RobotStatus = 33/Error) /// public int Errors { get; set; } } }