IItemByName.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma warning disable CS1591
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.Entities
  4. {
  5. /// <summary>
  6. /// Marker interface.
  7. /// </summary>
  8. public interface IItemByName
  9. {
  10. IReadOnlyList<BaseItem> GetTaggedItems(InternalItemsQuery query);
  11. TaggedItemCounts GetTaggedItemCounts(InternalItemsQuery query);
  12. }
  13. public interface IHasDualAccess : IItemByName
  14. {
  15. bool IsAccessedByName { get; }
  16. }
  17. public class TaggedItemCounts
  18. {
  19. public int? AlbumCount { get; set; }
  20. public int? ArtistCount { get; set; }
  21. public int? EpisodeCount { get; set; }
  22. public int? MovieCount { get; set; }
  23. public int? MusicVideoCount { get; set; }
  24. public int? ProgramCount { get; set; }
  25. public int? SeriesCount { get; set; }
  26. public int? SongCount { get; set; }
  27. public int? TrailerCount { get; set; }
  28. public int ChildCount => (AlbumCount ?? 0) + (ArtistCount ?? 0) + (EpisodeCount ?? 0) + (MovieCount ?? 0) + (MusicVideoCount ?? 0) + (ProgramCount ?? 0) + (SeriesCount ?? 0) + (SongCount ?? 0) + (TrailerCount ?? 0);
  29. }
  30. }