TaggedItemCounts.cs 775 B

123456789101112131415161718192021222324252627
  1. #pragma warning disable CS1591
  2. namespace MediaBrowser.Controller.Entities
  3. {
  4. public class TaggedItemCounts
  5. {
  6. public int? AlbumCount { get; set; }
  7. public int? ArtistCount { get; set; }
  8. public int? EpisodeCount { get; set; }
  9. public int? MovieCount { get; set; }
  10. public int? MusicVideoCount { get; set; }
  11. public int? ProgramCount { get; set; }
  12. public int? SeriesCount { get; set; }
  13. public int? SongCount { get; set; }
  14. public int? TrailerCount { get; set; }
  15. public int ChildCount => (AlbumCount ?? 0) + (ArtistCount ?? 0) + (EpisodeCount ?? 0) + (MovieCount ?? 0) + (MusicVideoCount ?? 0) + (ProgramCount ?? 0) + (SeriesCount ?? 0) + (SongCount ?? 0) + (TrailerCount ?? 0);
  16. }
  17. }