From 4058f8dc0a8b3443b19707fc02b4cec1697fa6ba Mon Sep 17 00:00:00 2001 From: ScottIsAFool Date: Sun, 12 Jan 2014 09:31:24 +0000 Subject: [PATCH] Added DebuggerDisplay to some DTO objects --- MediaBrowser.Model/Dto/BaseItemDto.cs | 4 +++- MediaBrowser.Model/Dto/BaseItemPerson.cs | 2 ++ MediaBrowser.Model/Dto/ChapterInfoDto.cs | 2 ++ MediaBrowser.Model/Dto/StudioDto.cs | 2 ++ MediaBrowser.Model/Dto/UserDto.cs | 2 ++ MediaBrowser.Model/Entities/BaseItemInfo.cs | 2 ++ MediaBrowser.Model/Entities/MediaStream.cs | 2 ++ MediaBrowser.Model/Session/SessionInfoDto.cs | 4 +++- 8 files changed, 18 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs index 665e36b88..af43ef200 100644 --- a/MediaBrowser.Model/Dto/BaseItemDto.cs +++ b/MediaBrowser.Model/Dto/BaseItemDto.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Model.Entities; +using System.Diagnostics; +using MediaBrowser.Model.Entities; using System; using System.Collections.Generic; using System.ComponentModel; @@ -10,6 +11,7 @@ namespace MediaBrowser.Model.Dto /// This is strictly used as a data transfer object from the api layer. /// This holds information about a BaseItem in a format that is convenient for the client. /// + [DebuggerDisplay("Name = {Name}, ID = {Id}, Type = {Type}")] public class BaseItemDto : IHasProviderIds, INotifyPropertyChanged, IItemDto { /// diff --git a/MediaBrowser.Model/Dto/BaseItemPerson.cs b/MediaBrowser.Model/Dto/BaseItemPerson.cs index 9fd5e1a8a..1cc3f722d 100644 --- a/MediaBrowser.Model/Dto/BaseItemPerson.cs +++ b/MediaBrowser.Model/Dto/BaseItemPerson.cs @@ -1,5 +1,6 @@ using System; using System.ComponentModel; +using System.Diagnostics; using System.Runtime.Serialization; namespace MediaBrowser.Model.Dto @@ -7,6 +8,7 @@ namespace MediaBrowser.Model.Dto /// /// This is used by the api to get information about a Person within a BaseItem /// + [DebuggerDisplay("Name = {Name}, Role = {Role}, Type = {Type}")] public class BaseItemPerson : INotifyPropertyChanged { /// diff --git a/MediaBrowser.Model/Dto/ChapterInfoDto.cs b/MediaBrowser.Model/Dto/ChapterInfoDto.cs index caa609a76..5a72110ce 100644 --- a/MediaBrowser.Model/Dto/ChapterInfoDto.cs +++ b/MediaBrowser.Model/Dto/ChapterInfoDto.cs @@ -1,5 +1,6 @@ using System; using System.ComponentModel; +using System.Diagnostics; using System.Runtime.Serialization; namespace MediaBrowser.Model.Dto @@ -7,6 +8,7 @@ namespace MediaBrowser.Model.Dto /// /// Class ChapterInfo /// + [DebuggerDisplay("Name = {Name}")] public class ChapterInfoDto : INotifyPropertyChanged { /// diff --git a/MediaBrowser.Model/Dto/StudioDto.cs b/MediaBrowser.Model/Dto/StudioDto.cs index 9e2dea85d..696213a40 100644 --- a/MediaBrowser.Model/Dto/StudioDto.cs +++ b/MediaBrowser.Model/Dto/StudioDto.cs @@ -1,5 +1,6 @@ using System; using System.ComponentModel; +using System.Diagnostics; using System.Runtime.Serialization; namespace MediaBrowser.Model.Dto @@ -7,6 +8,7 @@ namespace MediaBrowser.Model.Dto /// /// Class StudioDto /// + [DebuggerDisplay("Name = {Name}")] public class StudioDto { /// diff --git a/MediaBrowser.Model/Dto/UserDto.cs b/MediaBrowser.Model/Dto/UserDto.cs index a79ffc08c..dcf0843fe 100644 --- a/MediaBrowser.Model/Dto/UserDto.cs +++ b/MediaBrowser.Model/Dto/UserDto.cs @@ -1,4 +1,5 @@ using System.ComponentModel; +using System.Diagnostics; using MediaBrowser.Model.Configuration; using System; using System.Runtime.Serialization; @@ -8,6 +9,7 @@ namespace MediaBrowser.Model.Dto /// /// Class UserDto /// + [DebuggerDisplay("Name = {Name}, ID = {Id}, HasPassword = {HasPassword}")] public class UserDto : INotifyPropertyChanged, IItemDto { /// diff --git a/MediaBrowser.Model/Entities/BaseItemInfo.cs b/MediaBrowser.Model/Entities/BaseItemInfo.cs index faf6fd47a..49f3e2d8f 100644 --- a/MediaBrowser.Model/Entities/BaseItemInfo.cs +++ b/MediaBrowser.Model/Entities/BaseItemInfo.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using System.Runtime.Serialization; namespace MediaBrowser.Model.Entities @@ -6,6 +7,7 @@ namespace MediaBrowser.Model.Entities /// /// This is a stub class containing only basic information about an item /// + [DebuggerDisplay("Name = {Name}, ID = {Id}, Type = {Type}")] public class BaseItemInfo { /// diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index 59455889d..a8f751c10 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -1,10 +1,12 @@ using System.Collections.Generic; +using System.Diagnostics; namespace MediaBrowser.Model.Entities { /// /// Class MediaStream /// + [DebuggerDisplay("StreamType = {Type}")] public class MediaStream { /// diff --git a/MediaBrowser.Model/Session/SessionInfoDto.cs b/MediaBrowser.Model/Session/SessionInfoDto.cs index 50dd4da67..083d1ef79 100644 --- a/MediaBrowser.Model/Session/SessionInfoDto.cs +++ b/MediaBrowser.Model/Session/SessionInfoDto.cs @@ -1,10 +1,12 @@ -using MediaBrowser.Model.Entities; +using System.Diagnostics; +using MediaBrowser.Model.Entities; using System; using System.Collections.Generic; using System.ComponentModel; namespace MediaBrowser.Model.Session { + [DebuggerDisplay("Client = {Client}, Username = {UserName}")] public class SessionInfoDto : INotifyPropertyChanged { ///