mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Converted jobs to dynamic
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user