From 740a10a4e3f85ffcfd26ec18263d4c78d4b14ecc Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 10 Sep 2013 14:56:00 -0400 Subject: de-normalize item by name data. create counts during library scan for fast access. --- MediaBrowser.Model/ApiClient/IApiClient.cs | 2 ++ MediaBrowser.Model/Dto/BaseItemDto.cs | 44 ++++++++++++++++++++++++++++-- MediaBrowser.Model/Dto/ItemByNameCounts.cs | 4 +++ 3 files changed, 48 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Model') diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index 9bb96da5f..5a0159370 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -28,6 +28,8 @@ namespace MediaBrowser.Model.ApiClient /// event EventHandler HttpResponseReceived; + Task GetAsync(string url, CancellationToken cancellationToken); + /// /// Gets the critic reviews. /// diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs index 6c69197f6..63b819d69 100644 --- a/MediaBrowser.Model/Dto/BaseItemDto.cs +++ b/MediaBrowser.Model/Dto/BaseItemDto.cs @@ -36,8 +36,6 @@ namespace MediaBrowser.Model.Dto /// The name of the sort. public string SortName { get; set; } - public string MainFeaturePlaylistName { get; set; } - /// /// Gets or sets the video3 D format. /// @@ -521,6 +519,48 @@ namespace MediaBrowser.Model.Dto /// The locked fields. public List LockedFields { get; set; } + public int? AdultVideoCount { get; set; } + /// + /// Gets or sets the movie count. + /// + /// The movie count. + public int? MovieCount { get; set; } + /// + /// Gets or sets the series count. + /// + /// The series count. + public int? SeriesCount { get; set; } + /// + /// Gets or sets the episode count. + /// + /// The episode count. + public int? EpisodeCount { get; set; } + /// + /// Gets or sets the game count. + /// + /// The game count. + public int? GameCount { get; set; } + /// + /// Gets or sets the trailer count. + /// + /// The trailer count. + public int? TrailerCount { get; set; } + /// + /// Gets or sets the song count. + /// + /// The song count. + public int? SongCount { get; set; } + /// + /// Gets or sets the album count. + /// + /// The album count. + public int? AlbumCount { get; set; } + /// + /// Gets or sets the music video count. + /// + /// The music video count. + public int? MusicVideoCount { get; set; } + /// /// Gets or sets a value indicating whether [enable internet providers]. /// diff --git a/MediaBrowser.Model/Dto/ItemByNameCounts.cs b/MediaBrowser.Model/Dto/ItemByNameCounts.cs index eff5ab5c8..ae801e196 100644 --- a/MediaBrowser.Model/Dto/ItemByNameCounts.cs +++ b/MediaBrowser.Model/Dto/ItemByNameCounts.cs @@ -11,6 +11,10 @@ namespace MediaBrowser.Model.Dto /// /// The total count. public int TotalCount { get; set; } + /// + /// Gets or sets the adult video count. + /// + /// The adult video count. public int AdultVideoCount { get; set; } /// /// Gets or sets the movie count. -- cgit v1.2.3