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