2012-01-18 20:05:03 -08:00
|
|
|
using System;
|
|
|
|
using Newtonsoft.Json;
|
2013-04-07 10:58:58 -07:00
|
|
|
using NzbDrone.Core.Download.Clients.Sabnzbd.JsonConverters;
|
2013-03-04 21:33:34 -08:00
|
|
|
using NzbDrone.Core.Model;
|
2012-01-18 20:05:03 -08:00
|
|
|
|
2013-03-04 21:33:34 -08:00
|
|
|
namespace NzbDrone.Core.Download.Clients.Sabnzbd
|
2012-01-18 20:05:03 -08:00
|
|
|
{
|
|
|
|
public class SabQueueItem
|
|
|
|
{
|
|
|
|
public string Status { get; set; }
|
|
|
|
public int Index { get; set; }
|
2012-01-30 13:34:15 -08:00
|
|
|
|
|
|
|
[JsonConverter(typeof(SabnzbdQueueTimeConverter))]
|
2012-01-18 20:05:03 -08:00
|
|
|
public TimeSpan Timeleft { get; set; }
|
|
|
|
|
|
|
|
[JsonProperty(PropertyName = "mb")]
|
|
|
|
public decimal Size { get; set; }
|
|
|
|
|
2012-01-19 21:37:08 -08:00
|
|
|
private string _title;
|
|
|
|
|
2012-01-18 20:05:03 -08:00
|
|
|
[JsonProperty(PropertyName = "filename")]
|
2013-04-14 18:41:39 -07:00
|
|
|
public string Title { get; set; }
|
2012-01-18 20:05:03 -08:00
|
|
|
|
2012-05-19 13:07:30 -07:00
|
|
|
[JsonConverter(typeof(SabnzbdPriorityTypeConverter))]
|
2012-01-18 20:05:03 -08: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; }
|
|
|
|
}
|
|
|
|
}
|