2024-07-29 16:51:18 +10:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.API.Contracts.V1.Responses
|
2024-03-12 15:09:12 +10:00
|
|
|
|
{
|
|
|
|
|
|
public class ApplicationInWorkResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
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? LastRun { get; set; }
|
2024-03-12 15:09:12 +10:00
|
|
|
|
|
2024-07-03 10:16:54 +10:00
|
|
|
|
//public DateTimeOffset NextRun { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public DateTimeOffset ReferenceDate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsAutoDistributionEnabled { get; set; }
|
2024-03-12 15:09:12 +10:00
|
|
|
|
|
|
|
|
|
|
public bool IsAgent { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? AgentName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int? AgentTimeOutSec { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? AgentScript { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public WorkResponse? Work { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public ApplicationResponse? Application { get; set; }
|
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-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
|
|
|
|
|
|
|
|
|
|
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-03-12 15:09:12 +10:00
|
|
|
|
}
|