Radarr/src/Radarr.Api.V3/System/Tasks/TaskResource.cs

18 lines
493 B
C#
Raw Normal View History

2018-11-23 07:03:32 +00:00
using System;
using Radarr.Http.REST;
namespace Radarr.Api.V3.System.Tasks
2018-11-23 07:03:32 +00:00
{
public class TaskResource : RestResource
{
public string Name { get; set; }
public string TaskName { get; set; }
public int Interval { get; set; }
public DateTime LastExecution { get; set; }
public DateTime LastStartTime { get; set; }
2018-11-23 07:03:32 +00:00
public DateTime NextExecution { get; set; }
public TimeSpan LastDuration => LastExecution - LastStartTime;
2018-11-23 07:03:32 +00:00
}
}