diff options
| author | Techywarrior <techywarrior@gmail.com> | 2013-05-03 21:02:59 -0700 |
|---|---|---|
| committer | Techywarrior <techywarrior@gmail.com> | 2013-05-03 21:02:59 -0700 |
| commit | 0eed82c5049ce01b1907db987dc6f97f3d636e21 (patch) | |
| tree | a1995a80c23854f64158e1698250ae71c9282cd5 /MediaBrowser.Model | |
| parent | 9d4d2a221bbcc9a99db6373ecd3d93ff3287a4a3 (diff) | |
| parent | 163a1bdbcb4db04d97925aed496746ce5ef52580 (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/DTO/BaseItemDto.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Model/DTO/BaseItemPerson.cs | 36 |
2 files changed, 37 insertions, 1 deletions
diff --git a/MediaBrowser.Model/DTO/BaseItemDto.cs b/MediaBrowser.Model/DTO/BaseItemDto.cs index 4170e7250..f33892c47 100644 --- a/MediaBrowser.Model/DTO/BaseItemDto.cs +++ b/MediaBrowser.Model/DTO/BaseItemDto.cs @@ -160,7 +160,7 @@ namespace MediaBrowser.Model.Dto /// Gets or sets the studios. /// </summary> /// <value>The studios.</value> - public List<string> Studios { get; set; } + public StudioDto[] Studios { get; set; } /// <summary> /// If the item does not have a logo, this will hold the Id of the Parent that has one. diff --git a/MediaBrowser.Model/DTO/BaseItemPerson.cs b/MediaBrowser.Model/DTO/BaseItemPerson.cs index 9fd5e1a8a..911f070ce 100644 --- a/MediaBrowser.Model/DTO/BaseItemPerson.cs +++ b/MediaBrowser.Model/DTO/BaseItemPerson.cs @@ -51,4 +51,40 @@ namespace MediaBrowser.Model.Dto /// </summary> public event PropertyChangedEventHandler PropertyChanged; } + + /// <summary> + /// Class StudioDto + /// </summary> + public class StudioDto + { + /// <summary> + /// Gets or sets the name. + /// </summary> + /// <value>The name.</value> + public string Name { get; set; } + + /// <summary> + /// Gets or sets the primary image tag. + /// </summary> + /// <value>The primary image tag.</value> + public Guid? PrimaryImageTag { get; set; } + + /// <summary> + /// Gets a value indicating whether this instance has primary image. + /// </summary> + /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value> + [IgnoreDataMember] + public bool HasPrimaryImage + { + get + { + return PrimaryImageTag.HasValue; + } + } + + /// <summary> + /// Occurs when [property changed]. + /// </summary> + public event PropertyChangedEventHandler PropertyChanged; + } } |
