Notifications support
[StratumLibrary.git] / StratumLibrary / StratumNotification.cs
1 \feffusing Newtonsoft.Json;\r
2 using Newtonsoft.Json.Linq;\r
3 \r
4 \r
5 namespace Stratum\r
6 {\r
7     /// <summary>\r
8     /// Represents a Stratum notification\r
9     /// </summary>\r
10     [JsonObject(MemberSerialization.OptIn)]\r
11     public class StratumNotification\r
12     {\r
13         /// <summary>\r
14         /// Response id, should be null\r
15         /// </summary>\r
16         [JsonProperty(PropertyName = "id")]\r
17         public object Id { get; set; }\r
18 \r
19         /// <summary>\r
20         /// Method name\r
21         /// </summary>\r
22         [JsonProperty(PropertyName = "method")]\r
23         public string Method { get; set; }\r
24 \r
25         /// <summary>\r
26         /// Notification data\r
27         /// </summary>\r
28         [JsonProperty(PropertyName = "params")]\r
29         public JArray Params { get; set; }\r
30     }\r
31 }\r