diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-08-03 09:24:23 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-08-03 09:24:23 -0400 |
| commit | 0e4972f7e63002fb3a4caeb96bafd097bc1ed56b (patch) | |
| tree | 6198d7db1a5ee6d156a02b69cbac1abbb8df083c /MediaBrowser.Controller/Entities/BaseItem.cs | |
| parent | a52ea4cf084c0e734fa9cd76e332b8e80d9f255b (diff) | |
reduced some virtualization
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 35639925d..ab30d9ef7 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -469,7 +469,7 @@ namespace MediaBrowser.Controller.Entities /// Gets or sets the official rating. /// </summary> /// <value>The official rating.</value> - public virtual string OfficialRating { get; set; } + public string OfficialRating { get; set; } /// <summary> /// Gets or sets the official rating description. @@ -481,7 +481,7 @@ namespace MediaBrowser.Controller.Entities /// Gets or sets the custom rating. /// </summary> /// <value>The custom rating.</value> - public virtual string CustomRating { get; set; } + public string CustomRating { get; set; } /// <summary> /// Gets or sets the language. @@ -521,6 +521,18 @@ namespace MediaBrowser.Controller.Entities get { return People; } } + [IgnoreDataMember] + public virtual IEnumerable<string> AllStudios + { + get { return Studios; } + } + + [IgnoreDataMember] + public virtual IEnumerable<string> AllGenres + { + get { return Genres; } + } + /// <summary> /// Gets or sets the studios. /// </summary> @@ -620,6 +632,18 @@ namespace MediaBrowser.Controller.Entities public List<Guid> ThemeVideoIds { get; set; } public List<Guid> LocalTrailerIds { get; set; } + [IgnoreDataMember] + public virtual string OfficialRatingForComparison + { + get { return OfficialRating; } + } + + [IgnoreDataMember] + public virtual string CustomRatingForComparison + { + get { return CustomRating; } + } + /// <summary> /// Loads local trailers from the file system /// </summary> @@ -992,11 +1016,11 @@ namespace MediaBrowser.Controller.Entities return true; } - var rating = CustomRating; + var rating = CustomRatingForComparison; if (string.IsNullOrEmpty(rating)) { - rating = OfficialRating; + rating = OfficialRatingForComparison; } if (string.IsNullOrEmpty(rating)) |
