Merge remote-tracking branch 'origin/dynamic-jobs'

This commit is contained in:
Mark McDowall 2012-10-19 08:39:07 -07:00
commit db585b3bd7
52 changed files with 292 additions and 208 deletions

View file

@ -5,20 +5,18 @@ namespace NzbDrone.Core.Model
public class JobQueueItem : IEquatable<JobQueueItem>
{
public Type JobType { get; set; }
public int TargetId { get; set; }
public int SecondaryTargetId { get; set; }
public dynamic Options { get; set; }
public JobSourceType Source { get; set; }
public bool Equals(JobQueueItem other)
{
return (JobType == other.JobType && TargetId == other.TargetId
&& SecondaryTargetId == other.SecondaryTargetId);
return (JobType == other.JobType && Options == other.Options);
}
public override string ToString()
{
return string.Format("[{0}({1}, {2})]", JobType.Name, TargetId, SecondaryTargetId);
return string.Format("[{0}({1})]", JobType.Name, Options);
}
public enum JobSourceType