mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Merge remote-tracking branch 'origin/dynamic-jobs'
This commit is contained in:
commit
db585b3bd7
52 changed files with 292 additions and 208 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue