job structure cleanup.

This commit is contained in:
kay.one
2013-03-04 21:20:47 -08:00
parent 5e77d51510
commit eaf6f94c02
35 changed files with 47 additions and 19 deletions

View File

@@ -0,0 +1,29 @@
using System.Linq;
using System;
namespace NzbDrone.Core.Jobs.Framework
{
public class JobQueueItem : IEquatable<JobQueueItem>
{
public Type JobType { get; set; }
public dynamic Options { get; set; }
public JobSourceType Source { get; set; }
public bool Equals(JobQueueItem other)
{
return (JobType == other.JobType && Options == other.Options);
}
public override string ToString()
{
return string.Format("[{0}({1})]", JobType.Name, Options);
}
public enum JobSourceType
{
User,
Scheduler
}
}
}