From a152293f7d407a08a874d35d0d53fef0e9a2fde9 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Sat, 4 May 2013 14:18:40 -0400 Subject: [PATCH] Pull StudioDto.cs out of BaseItemPerson.cs --- MediaBrowser.Model/DTO/BaseItemPerson.cs | 36 ----------------- MediaBrowser.Model/Dto/StudioDto.cs | 42 ++++++++++++++++++++ MediaBrowser.Model/MediaBrowser.Model.csproj | 1 + 3 files changed, 43 insertions(+), 36 deletions(-) create mode 100644 MediaBrowser.Model/Dto/StudioDto.cs diff --git a/MediaBrowser.Model/DTO/BaseItemPerson.cs b/MediaBrowser.Model/DTO/BaseItemPerson.cs index 911f070ce8..9fd5e1a8ad 100644 --- a/MediaBrowser.Model/DTO/BaseItemPerson.cs +++ b/MediaBrowser.Model/DTO/BaseItemPerson.cs @@ -51,40 +51,4 @@ namespace MediaBrowser.Model.Dto /// public event PropertyChangedEventHandler PropertyChanged; } - - /// - /// Class StudioDto - /// - public class StudioDto - { - /// - /// Gets or sets the name. - /// - /// The name. - public string Name { get; set; } - - /// - /// Gets or sets the primary image tag. - /// - /// The primary image tag. - public Guid? PrimaryImageTag { get; set; } - - /// - /// Gets a value indicating whether this instance has primary image. - /// - /// true if this instance has primary image; otherwise, false. - [IgnoreDataMember] - public bool HasPrimaryImage - { - get - { - return PrimaryImageTag.HasValue; - } - } - - /// - /// Occurs when [property changed]. - /// - public event PropertyChangedEventHandler PropertyChanged; - } } diff --git a/MediaBrowser.Model/Dto/StudioDto.cs b/MediaBrowser.Model/Dto/StudioDto.cs new file mode 100644 index 0000000000..9e2dea85d8 --- /dev/null +++ b/MediaBrowser.Model/Dto/StudioDto.cs @@ -0,0 +1,42 @@ +using System; +using System.ComponentModel; +using System.Runtime.Serialization; + +namespace MediaBrowser.Model.Dto +{ + /// + /// Class StudioDto + /// + public class StudioDto + { + /// + /// Gets or sets the name. + /// + /// The name. + public string Name { get; set; } + + /// + /// Gets or sets the primary image tag. + /// + /// The primary image tag. + public Guid? PrimaryImageTag { get; set; } + + /// + /// Gets a value indicating whether this instance has primary image. + /// + /// true if this instance has primary image; otherwise, false. + [IgnoreDataMember] + public bool HasPrimaryImage + { + get + { + return PrimaryImageTag.HasValue; + } + } + + /// + /// Occurs when [property changed]. + /// + public event PropertyChangedEventHandler PropertyChanged; + } +} \ No newline at end of file diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index 75725e589f..512ddd7ded 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -46,6 +46,7 @@ +