using System.Collections.Generic; using System.Linq; using NzbDrone.Core.Datastore; namespace NzbDrone.Core.Tags { public class TagDetails : ModelBase { public string Label { get; set; } public List ArtistIds { get; set; } public List NotificationIds { get; set; } public List RestrictionIds { get; set; } public List DelayProfileIds { get; set; } public List ImportListIds { get; set; } public List RootFolderIds { get; set; } public List IndexerIds { get; set; } public List AutoTagIds { get; set; } public List DownloadClientIds { get; set; } public bool InUse => ArtistIds.Any() || NotificationIds.Any() || RestrictionIds.Any() || DelayProfileIds.Any() || ImportListIds.Any() || RootFolderIds.Any() || IndexerIds.Any() || AutoTagIds.Any() || DownloadClientIds.Any(); } }