ImplementPropertyChanged for POCOs

This commit is contained in:
2013-10-28 21:23:51 +01:00
parent f14e60a36e
commit 127da64ec5
3 changed files with 6 additions and 4 deletions
+2
View File
@@ -1,4 +1,5 @@
using Newtonsoft.Json; using Newtonsoft.Json;
using PropertyChanged;
namespace UptimeSharp.Models namespace UptimeSharp.Models
{ {
@@ -6,6 +7,7 @@ namespace UptimeSharp.Models
/// The Alert Model /// The Alert Model
/// </summary> /// </summary>
[JsonObject] [JsonObject]
[ImplementPropertyChanged]
public class Alert public class Alert
{ {
/// <summary> /// <summary>
+2
View File
@@ -1,6 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using Newtonsoft.Json; using Newtonsoft.Json;
using System; using System;
using PropertyChanged;
namespace UptimeSharp.Models namespace UptimeSharp.Models
{ {
@@ -8,6 +9,7 @@ namespace UptimeSharp.Models
/// The Log Model /// The Log Model
/// </summary> /// </summary>
[JsonObject] [JsonObject]
[ImplementPropertyChanged]
public class Log public class Log
{ {
/// <summary> /// <summary>
+2 -4
View File
@@ -1,10 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Net;
using Newtonsoft.Json; using Newtonsoft.Json;
using PropertyChanged;
namespace UptimeSharp.Models namespace UptimeSharp.Models
{ {
@@ -12,6 +9,7 @@ namespace UptimeSharp.Models
/// The Monitor Model implementation /// The Monitor Model implementation
/// </summary> /// </summary>
[JsonObject] [JsonObject]
[ImplementPropertyChanged]
public class Monitor public class Monitor
{ {
/// <summary> /// <summary>