diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-07-10 16:06:11 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-07-10 16:06:11 -0400 |
| commit | 9821faf5661f4ed06fbc46219bfa843885a1c9bd (patch) | |
| tree | 78108ca55d29910ba17b98843f67b55438c5f8e3 /MediaBrowser.Controller/Entities | |
| parent | d97a1af2631a3c86ccbb9a4d5b56389315c96e23 (diff) | |
Added new theme song/video endpoints
Diffstat (limited to 'MediaBrowser.Controller/Entities')
| -rw-r--r-- | MediaBrowser.Controller/Entities/MusicVideo.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/MusicVideo.cs b/MediaBrowser.Controller/Entities/MusicVideo.cs index 035709bb42..09f99f500a 100644 --- a/MediaBrowser.Controller/Entities/MusicVideo.cs +++ b/MediaBrowser.Controller/Entities/MusicVideo.cs @@ -1,4 +1,5 @@ using MediaBrowser.Model.Entities; +using System; using System.Runtime.Serialization; namespace MediaBrowser.Controller.Entities @@ -6,6 +7,18 @@ namespace MediaBrowser.Controller.Entities public class MusicVideo : Video { /// <summary> + /// Gets or sets the artist. + /// </summary> + /// <value>The artist.</value> + public string Artist { get; set; } + + /// <summary> + /// Gets or sets the album. + /// </summary> + /// <value>The album.</value> + public string Album { get; set; } + + /// <summary> /// Should be overridden to return the proper folder where metadata lives /// </summary> /// <value>The meta location.</value> @@ -19,6 +32,16 @@ namespace MediaBrowser.Controller.Entities } /// <summary> + /// Determines whether the specified name has artist. + /// </summary> + /// <param name="name">The name.</param> + /// <returns><c>true</c> if the specified name has artist; otherwise, <c>false</c>.</returns> + public bool HasArtist(string name) + { + return string.Equals(Artist, name, StringComparison.OrdinalIgnoreCase); + } + + /// <summary> /// Gets the user data key. /// </summary> /// <returns>System.String.</returns> |
