mirror of https://github.com/Radarr/Radarr
15 lines
440 B
C#
15 lines
440 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using NzbDrone.Core.AutoTagging.Specifications;
|
|
|
|
namespace NzbDrone.Core.AutoTagging
|
|
{
|
|
public class SpecificationMatchesGroup
|
|
{
|
|
public Dictionary<IAutoTaggingSpecification, bool> Matches { get; set; }
|
|
|
|
public bool DidMatch => !(Matches.Any(m => m.Key.Required && m.Value == false) ||
|
|
Matches.All(m => m.Value == false));
|
|
}
|
|
}
|