44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
namespace PARR.API.Contracts.V1.Requests
|
|
{
|
|
public class ApplicationInWorkRequest
|
|
{
|
|
|
|
public required Guid WorkId { get; set; }
|
|
|
|
public required Guid ApplicationId { 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; }
|
|
public DateTimeOffset NextRun { get; set; }
|
|
|
|
public bool IsAgent { get; set; }
|
|
|
|
public string? AgentName { get; set; }
|
|
|
|
public int? AgentTimeOutSec { get; set; }
|
|
|
|
public string? AgentScript { get; set; }
|
|
|
|
public required ScheduleRequest Schedule { get; set; }
|
|
|
|
}
|
|
|
|
public class ScheduleRequest
|
|
{
|
|
public DateTimeOffset NextRun { get; set; }
|
|
|
|
//public DateTimeOffset? LastRun { get; set; }
|
|
|
|
//public string Timezone { get; set; } = string.Empty;
|
|
|
|
public required int TypeScheduleId { get; set; }
|
|
|
|
public List<Guid> Values { get; set; } = new List<Guid>();
|
|
}
|
|
}
|