2012-01-19 05:05:03 +01:00
|
|
|
|
using System;
|
|
|
|
|
using Newtonsoft.Json;
|
2013-04-07 19:58:58 +02:00
|
|
|
|
using NzbDrone.Core.Download.Clients.Sabnzbd.JsonConverters;
|
2012-01-19 05:05:03 +01:00
|
|
|
|
|
2013-03-05 06:33:34 +01:00
|
|
|
|
namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
2012-01-19 05:05:03 +01:00
|
|
|
|
{
|
|
|
|
|
public class SabQueueItem
|
|
|
|
|
{
|
|
|
|
|
public string Status { get; set; }
|
|
|
|
|
public int Index { get; set; }
|
2012-01-30 22:34:15 +01:00
|
|
|
|
|
|
|
|
|
[JsonConverter(typeof(SabnzbdQueueTimeConverter))]
|
2012-01-19 05:05:03 +01:00
|
|
|
|
public TimeSpan Timeleft { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(PropertyName = "mb")]
|
|
|
|
|
public decimal Size { get; set; }
|
|
|
|
|
|
2012-01-20 06:37:08 +01:00
|
|
|
|
private string _title;
|
|
|
|
|
|
2012-01-19 05:05:03 +01:00
|
|
|
|
[JsonProperty(PropertyName = "filename")]
|
2013-04-15 03:41:39 +02:00
|
|
|
|
public string Title { get; set; }
|
2012-01-19 05:05:03 +01:00
|
|
|
|
|
2012-05-19 22:07:30 +02:00
|
|
|
|
[JsonConverter(typeof(SabnzbdPriorityTypeConverter))]
|
2012-01-19 05:05:03 +01:00
|
|
|
|
public SabPriorityType Priority { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(PropertyName = "cat")]
|
|
|
|
|
public string Category { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(PropertyName = "mbleft")]
|
|
|
|
|
public decimal SizeLeft { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Percentage { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(PropertyName = "nzo_id")]
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|