|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
|
using NzbDrone.Core.Messaging.Events;
|
|
|
|
@ -9,6 +10,7 @@ namespace NzbDrone.Core.Tags
|
|
|
|
|
{
|
|
|
|
|
Tag GetByLabel(string label);
|
|
|
|
|
Tag FindByLabel(string label);
|
|
|
|
|
List<Tag> GetTags(HashSet<int> tagIds);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class TagRepository : BasicRepository<Tag>, ITagRepository
|
|
|
|
@ -34,5 +36,10 @@ namespace NzbDrone.Core.Tags
|
|
|
|
|
{
|
|
|
|
|
return Query(x => x.Label == label).SingleOrDefault();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Tag> GetTags(HashSet<int> tagIds)
|
|
|
|
|
{
|
|
|
|
|
return Query(t => tagIds.Contains(t.Id));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|