Added DebuggerDisplay to some DTO objects
This commit is contained in:
parent
c8a106f485
commit
4058f8dc0a
|
@ -1,4 +1,5 @@
|
||||||
using MediaBrowser.Model.Entities;
|
using System.Diagnostics;
|
||||||
|
using MediaBrowser.Model.Entities;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
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 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.
|
/// This holds information about a BaseItem in a format that is convenient for the client.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DebuggerDisplay("Name = {Name}, ID = {Id}, Type = {Type}")]
|
||||||
public class BaseItemDto : IHasProviderIds, INotifyPropertyChanged, IItemDto
|
public class BaseItemDto : IHasProviderIds, INotifyPropertyChanged, IItemDto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Dto
|
namespace MediaBrowser.Model.Dto
|
||||||
|
@ -7,6 +8,7 @@ namespace MediaBrowser.Model.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is used by the api to get information about a Person within a BaseItem
|
/// This is used by the api to get information about a Person within a BaseItem
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DebuggerDisplay("Name = {Name}, Role = {Role}, Type = {Type}")]
|
||||||
public class BaseItemPerson : INotifyPropertyChanged
|
public class BaseItemPerson : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Dto
|
namespace MediaBrowser.Model.Dto
|
||||||
|
@ -7,6 +8,7 @@ namespace MediaBrowser.Model.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class ChapterInfo
|
/// Class ChapterInfo
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DebuggerDisplay("Name = {Name}")]
|
||||||
public class ChapterInfoDto : INotifyPropertyChanged
|
public class ChapterInfoDto : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Dto
|
namespace MediaBrowser.Model.Dto
|
||||||
|
@ -7,6 +8,7 @@ namespace MediaBrowser.Model.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class StudioDto
|
/// Class StudioDto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DebuggerDisplay("Name = {Name}")]
|
||||||
public class StudioDto
|
public class StudioDto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.Diagnostics;
|
||||||
using MediaBrowser.Model.Configuration;
|
using MediaBrowser.Model.Configuration;
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
@ -8,6 +9,7 @@ namespace MediaBrowser.Model.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class UserDto
|
/// Class UserDto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DebuggerDisplay("Name = {Name}, ID = {Id}, HasPassword = {HasPassword}")]
|
||||||
public class UserDto : INotifyPropertyChanged, IItemDto
|
public class UserDto : INotifyPropertyChanged, IItemDto
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
|
@ -6,6 +7,7 @@ namespace MediaBrowser.Model.Entities
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is a stub class containing only basic information about an item
|
/// This is a stub class containing only basic information about an item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DebuggerDisplay("Name = {Name}, ID = {Id}, Type = {Type}")]
|
||||||
public class BaseItemInfo
|
public class BaseItemInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class MediaStream
|
/// Class MediaStream
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[DebuggerDisplay("StreamType = {Type}")]
|
||||||
public class MediaStream
|
public class MediaStream
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
using MediaBrowser.Model.Entities;
|
using System.Diagnostics;
|
||||||
|
using MediaBrowser.Model.Entities;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Session
|
namespace MediaBrowser.Model.Session
|
||||||
{
|
{
|
||||||
|
[DebuggerDisplay("Client = {Client}, Username = {UserName}")]
|
||||||
public class SessionInfoDto : INotifyPropertyChanged
|
public class SessionInfoDto : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user