From 14adda2e404c0d03057746a35db6208b358a920b Mon Sep 17 00:00:00 2001 From: ScottIsAFool Date: Sat, 18 Jan 2014 10:03:47 +0000 Subject: [PATCH] Added further DebuggerDisplay for DTOs --- MediaBrowser.Model/LiveTv/ChannelInfoDto.cs | 2 ++ MediaBrowser.Model/LiveTv/ProgramInfoDto.cs | 2 ++ MediaBrowser.Model/LiveTv/RecordingGroupDto.cs | 2 ++ MediaBrowser.Model/LiveTv/RecordingInfoDto.cs | 4 +++- MediaBrowser.Model/LiveTv/SeriesTimerInfoDto.cs | 2 ++ 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Model/LiveTv/ChannelInfoDto.cs b/MediaBrowser.Model/LiveTv/ChannelInfoDto.cs index 9ea15739fe..35045e7ef5 100644 --- a/MediaBrowser.Model/LiveTv/ChannelInfoDto.cs +++ b/MediaBrowser.Model/LiveTv/ChannelInfoDto.cs @@ -1,4 +1,5 @@ using System.ComponentModel; +using System.Diagnostics; using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; using System; @@ -9,6 +10,7 @@ namespace MediaBrowser.Model.LiveTv /// /// Class ChannelInfoDto /// + [DebuggerDisplay("Name = {Name}, Number = {Number}")] public class ChannelInfoDto : INotifyPropertyChanged, IItemDto { /// diff --git a/MediaBrowser.Model/LiveTv/ProgramInfoDto.cs b/MediaBrowser.Model/LiveTv/ProgramInfoDto.cs index 9a29f18005..26b5820a81 100644 --- a/MediaBrowser.Model/LiveTv/ProgramInfoDto.cs +++ b/MediaBrowser.Model/LiveTv/ProgramInfoDto.cs @@ -1,4 +1,5 @@ using System.ComponentModel; +using System.Diagnostics; using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; using System; @@ -6,6 +7,7 @@ using System.Collections.Generic; namespace MediaBrowser.Model.LiveTv { + [DebuggerDisplay("Name = {Name}, StartTime = {StartDate}, EndTime = {EndDate}")] public class ProgramInfoDto : INotifyPropertyChanged { /// diff --git a/MediaBrowser.Model/LiveTv/RecordingGroupDto.cs b/MediaBrowser.Model/LiveTv/RecordingGroupDto.cs index fca2e1fe41..db96d56b44 100644 --- a/MediaBrowser.Model/LiveTv/RecordingGroupDto.cs +++ b/MediaBrowser.Model/LiveTv/RecordingGroupDto.cs @@ -1,10 +1,12 @@ using System.ComponentModel; +using System.Diagnostics; namespace MediaBrowser.Model.LiveTv { /// /// Class RecordingGroupDto. /// + [DebuggerDisplay("Name = {Name}, Count = {RecordingCount}")] public class RecordingGroupDto : INotifyPropertyChanged { /// diff --git a/MediaBrowser.Model/LiveTv/RecordingInfoDto.cs b/MediaBrowser.Model/LiveTv/RecordingInfoDto.cs index 2a95247ce6..969aa1b8fa 100644 --- a/MediaBrowser.Model/LiveTv/RecordingInfoDto.cs +++ b/MediaBrowser.Model/LiveTv/RecordingInfoDto.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Model.Dto; +using System.Diagnostics; +using MediaBrowser.Model.Dto; using MediaBrowser.Model.Entities; using System; using System.Collections.Generic; @@ -6,6 +7,7 @@ using System.ComponentModel; namespace MediaBrowser.Model.LiveTv { + [DebuggerDisplay("Name = {Name}, ChannelName = {ChannelName}")] public class RecordingInfoDto : INotifyPropertyChanged { /// diff --git a/MediaBrowser.Model/LiveTv/SeriesTimerInfoDto.cs b/MediaBrowser.Model/LiveTv/SeriesTimerInfoDto.cs index 3426fd4cbf..a2de3e5d87 100644 --- a/MediaBrowser.Model/LiveTv/SeriesTimerInfoDto.cs +++ b/MediaBrowser.Model/LiveTv/SeriesTimerInfoDto.cs @@ -1,9 +1,11 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.Diagnostics; namespace MediaBrowser.Model.LiveTv { + [DebuggerDisplay("Name = {Name}")] public class SeriesTimerInfoDto : INotifyPropertyChanged { ///