mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-08-30 23:00:18 -04:00
move new TaggedItemCounts to its own file
This commit is contained in:
parent
0a4ff3f3c0
commit
5eef85f027
@ -18,27 +18,4 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
bool IsAccessedByName { get; }
|
||||
}
|
||||
|
||||
public class TaggedItemCounts
|
||||
{
|
||||
public int? AlbumCount { get; set; }
|
||||
|
||||
public int? ArtistCount { get; set; }
|
||||
|
||||
public int? EpisodeCount { get; set; }
|
||||
|
||||
public int? MovieCount { get; set; }
|
||||
|
||||
public int? MusicVideoCount { get; set; }
|
||||
|
||||
public int? ProgramCount { get; set; }
|
||||
|
||||
public int? SeriesCount { get; set; }
|
||||
|
||||
public int? SongCount { get; set; }
|
||||
|
||||
public int? TrailerCount { get; set; }
|
||||
|
||||
public int ChildCount => (AlbumCount ?? 0) + (ArtistCount ?? 0) + (EpisodeCount ?? 0) + (MovieCount ?? 0) + (MusicVideoCount ?? 0) + (ProgramCount ?? 0) + (SeriesCount ?? 0) + (SongCount ?? 0) + (TrailerCount ?? 0);
|
||||
}
|
||||
}
|
||||
|
27
MediaBrowser.Controller/Entities/TaggedItemCounts.cs
Normal file
27
MediaBrowser.Controller/Entities/TaggedItemCounts.cs
Normal file
@ -0,0 +1,27 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
public class TaggedItemCounts
|
||||
{
|
||||
public int? AlbumCount { get; set; }
|
||||
|
||||
public int? ArtistCount { get; set; }
|
||||
|
||||
public int? EpisodeCount { get; set; }
|
||||
|
||||
public int? MovieCount { get; set; }
|
||||
|
||||
public int? MusicVideoCount { get; set; }
|
||||
|
||||
public int? ProgramCount { get; set; }
|
||||
|
||||
public int? SeriesCount { get; set; }
|
||||
|
||||
public int? SongCount { get; set; }
|
||||
|
||||
public int? TrailerCount { get; set; }
|
||||
|
||||
public int ChildCount => (AlbumCount ?? 0) + (ArtistCount ?? 0) + (EpisodeCount ?? 0) + (MovieCount ?? 0) + (MusicVideoCount ?? 0) + (ProgramCount ?? 0) + (SeriesCount ?? 0) + (SongCount ?? 0) + (TrailerCount ?? 0);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user