aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/Genre.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-10 14:56:00 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-10 14:56:00 -0400
commit740a10a4e3f85ffcfd26ec18263d4c78d4b14ecc (patch)
tree61462d05ce44c1bb17f48e557b02e14bb480816d /MediaBrowser.Controller/Entities/Genre.cs
parentd078edfb96fe2dcfebdc34e9189f85b0487ac242 (diff)
de-normalize item by name data. create counts during library scan for fast access.
Diffstat (limited to 'MediaBrowser.Controller/Entities/Genre.cs')
-rw-r--r--MediaBrowser.Controller/Entities/Genre.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/Genre.cs b/MediaBrowser.Controller/Entities/Genre.cs
index e02a427e0..83fa57dfb 100644
--- a/MediaBrowser.Controller/Entities/Genre.cs
+++ b/MediaBrowser.Controller/Entities/Genre.cs
@@ -1,4 +1,7 @@
-
+using MediaBrowser.Model.Dto;
+using System;
+using System.Collections.Generic;
+
namespace MediaBrowser.Controller.Entities
{
/// <summary>
@@ -6,6 +9,12 @@ namespace MediaBrowser.Controller.Entities
/// </summary>
public class Genre : BaseItem, IItemByName
{
+ public Genre()
+ {
+ ItemCounts = new ItemByNameCounts();
+ UserItemCounts = new Dictionary<Guid, ItemByNameCounts>();
+ }
+
/// <summary>
/// Gets the user data key.
/// </summary>
@@ -14,5 +23,9 @@ namespace MediaBrowser.Controller.Entities
{
return "Genre-" + Name;
}
+
+ public ItemByNameCounts ItemCounts { get; set; }
+
+ public Dictionary<Guid, ItemByNameCounts> UserItemCounts { get; set; }
}
}