add DebuggerDisplay to models

This commit is contained in:
2014-01-09 01:22:21 +01:00
parent 6fb98a33ba
commit 7c922fc53b
3 changed files with 7 additions and 3 deletions
+2
View File
@@ -1,5 +1,6 @@
using Newtonsoft.Json; using Newtonsoft.Json;
using PropertyChanged; using PropertyChanged;
using System.Diagnostics;
namespace UptimeSharp.Models namespace UptimeSharp.Models
{ {
@@ -8,6 +9,7 @@ namespace UptimeSharp.Models
/// </summary> /// </summary>
[JsonObject] [JsonObject]
[ImplementPropertyChanged] [ImplementPropertyChanged]
[DebuggerDisplay("Type = {Type}, Value = {Value}")]
public class Alert public class Alert
{ {
/// <summary> /// <summary>
+3 -3
View File
@@ -1,7 +1,7 @@
using System.Collections.Generic; using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
using PropertyChanged; using PropertyChanged;
using System;
using System.Collections.Generic;
namespace UptimeSharp.Models namespace UptimeSharp.Models
{ {
+2
View File
@@ -1,6 +1,7 @@
using Newtonsoft.Json; using Newtonsoft.Json;
using PropertyChanged; using PropertyChanged;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
namespace UptimeSharp.Models namespace UptimeSharp.Models
{ {
@@ -9,6 +10,7 @@ namespace UptimeSharp.Models
/// </summary> /// </summary>
[JsonObject] [JsonObject]
[ImplementPropertyChanged] [ImplementPropertyChanged]
[DebuggerDisplay("Name = {Name}, Uri = {Uri}")]
public class Monitor public class Monitor
{ {
/// <summary> /// <summary>