diff options
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 4e63160fc..15963a807 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -478,6 +478,12 @@ namespace MediaBrowser.Controller.Entities public DateTime? PremiereDate { get; set; } /// <summary> + /// Gets or sets the end date. + /// </summary> + /// <value>The end date.</value> + public DateTime? EndDate { get; set; } + + /// <summary> /// Gets or sets the display type of the media. /// </summary> /// <value>The display type of the media.</value> @@ -552,6 +558,24 @@ namespace MediaBrowser.Controller.Entities public virtual List<string> Genres { get; set; } /// <summary> + /// Gets or sets the home page URL. + /// </summary> + /// <value>The home page URL.</value> + public string HomePageUrl { get; set; } + + /// <summary> + /// Gets or sets the budget. + /// </summary> + /// <value>The budget.</value> + public double Budget { get; set; } + + /// <summary> + /// Gets or sets the production locations. + /// </summary> + /// <value>The production locations.</value> + public List<string> ProductionLocations { get; set; } + + /// <summary> /// Gets or sets the community rating. /// </summary> /// <value>The community rating.</value> @@ -1064,7 +1088,7 @@ namespace MediaBrowser.Controller.Entities { if (string.IsNullOrWhiteSpace(name)) { - throw new ArgumentNullException(); + throw new ArgumentNullException("name"); } if (Genres == null) @@ -1079,6 +1103,29 @@ namespace MediaBrowser.Controller.Entities } /// <summary> + /// Adds the production location. + /// </summary> + /// <param name="location">The location.</param> + /// <exception cref="System.ArgumentNullException">location</exception> + public void AddProductionLocation(string location) + { + if (string.IsNullOrWhiteSpace(location)) + { + throw new ArgumentNullException("location"); + } + + if (ProductionLocations == null) + { + ProductionLocations = new List<string>(); + } + + if (!ProductionLocations.Contains(location, StringComparer.OrdinalIgnoreCase)) + { + ProductionLocations.Add(location); + } + } + + /// <summary> /// Adds genres to the item /// </summary> /// <param name="genres">The genres.</param> |
