2024-08-20 09:33:13 +10:00
|
|
|
|
namespace PARR.API.Contracts.V1.Responses
|
2024-03-12 15:09:12 +10:00
|
|
|
|
{
|
2024-08-20 09:33:13 +10:00
|
|
|
|
public class ApplicationInWorkBaseResponse
|
2024-03-12 15:09:12 +10:00
|
|
|
|
{
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string TemplateDuration { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string ShortDescription { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string FullDescription { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string Solution { get; set; }
|
|
|
|
|
|
|
2024-07-03 10:16:54 +10:00
|
|
|
|
public DateTimeOffset ReferenceDate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsAutoDistributionEnabled { get; set; }
|
2024-03-12 15:09:12 +10:00
|
|
|
|
|
|
|
|
|
|
public bool IsAgent { get; set; }
|
|
|
|
|
|
|
2024-08-20 09:33:13 +10:00
|
|
|
|
public ApplicationResponse? Application { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class ApplicationInWorkResponse : ApplicationInWorkBaseResponse
|
|
|
|
|
|
{
|
2024-03-12 15:09:12 +10:00
|
|
|
|
public string? AgentName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int? AgentTimeOutSec { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? AgentScript { get; set; }
|
|
|
|
|
|
|
2025-12-09 16:00:38 +10:00
|
|
|
|
//public WorkResponse? Work { get; set; }
|
2024-03-12 15:09:12 +10:00
|
|
|
|
|
2024-04-02 14:20:11 +10:00
|
|
|
|
public int TemplatesCount { get; set; }
|
|
|
|
|
|
|
2024-07-29 16:51:18 +10:00
|
|
|
|
|
|
|
|
|
|
#region Статистика
|
|
|
|
|
|
|
|
|
|
|
|
public TemplateStats? TemplateStatistics { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public ScheduleStats? ScheduleStatistics { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-02 14:20:11 +10:00
|
|
|
|
public ApplicationInWorkScheduleResponse? Schedule { get; set; }
|
2024-06-04 12:03:15 +10:00
|
|
|
|
|
2024-07-03 10:16:54 +10:00
|
|
|
|
public List<WorkGroupResponse>? WorkGroups { get; set; }
|
2024-09-11 14:59:37 +10:00
|
|
|
|
|
2025-12-05 14:07:48 +10:00
|
|
|
|
//public JobAutoControlBaseResponse? AutoControl { get; set; }
|
2024-03-12 15:09:12 +10:00
|
|
|
|
}
|
2024-04-02 14:20:11 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class ApplicationInWorkScheduleResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Timezone { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
public EsppScheduleTypeScheduleResponse? TypeSchedule { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public List<EsppScheduleValResponse>? Values { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-29 16:51:18 +10:00
|
|
|
|
|
2025-07-01 17:20:48 +10:00
|
|
|
|
//public class TemplateStats
|
|
|
|
|
|
//{
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
// /// Активированных шаблонов
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
// public int Activated { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
// /// Синхронизировано шаблонов (TaskStatus = 30/Ok)
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
// public int Synchronized { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
// /// Ошибок синхронизации (RobotStatus = 33/Error)
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
// public int Errors { get; set; }
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//public class ScheduleStats
|
|
|
|
|
|
//{
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
// /// Активированных шаблонов
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
// public int Activated { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
// /// Синхронизировано шаблонов (TaskStatus = 30/Ok)
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
// public int Synchronized { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
// /// Ошибок синхронизации (RobotStatus = 33/Error)
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
// public int Errors { get; set; }
|
|
|
|
|
|
//}
|
2024-07-29 16:51:18 +10:00
|
|
|
|
|
2024-03-12 15:09:12 +10:00
|
|
|
|
}
|