2011-08-22 03:48:37 +03:00
|
|
|
using System;
|
|
|
|
|
|
|
|
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 bool Equals(JobQueueItem other)
|
|
|
|
{
|
2011-11-07 09:26:21 +03:00
|
|
|
return (JobType == other.JobType && TargetId == other.TargetId
|
|
|
|
&& SecondaryTargetId == other.SecondaryTargetId);
|
|
|
|
}
|
2011-08-22 03:48:37 +03:00
|
|
|
|
2011-11-07 09:26:21 +03:00
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return string.Format("[{0}({1}, {2})]", JobType.Name, TargetId, SecondaryTargetId);
|
2011-08-22 03:48:37 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|