moved jobs around again ;)

This commit is contained in:
kay.one 2013-03-04 21:37:33 -08:00
commit 568d4b8eeb
29 changed files with 70 additions and 121 deletions

View file

@ -0,0 +1,29 @@
using System;
using System.Linq;
namespace NzbDrone.Core.Jobs
{
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
}
}
}