X-Git-Url: https://git.novaco.in/?p=StratumLibrary.git;a=blobdiff_plain;f=StratumLibrary%2FStratumNotification.cs;fp=StratumLibrary%2FStratumNotification.cs;h=9be11f4d9ecdeace4f73d9dd08655de024c71668;hp=0000000000000000000000000000000000000000;hb=5ac1ea8b2c1c4eca105471979abafa6c637b67a9;hpb=27ffb176358e7959320a5be4d916a862a55cff37 diff --git a/StratumLibrary/StratumNotification.cs b/StratumLibrary/StratumNotification.cs new file mode 100644 index 0000000..9be11f4 --- /dev/null +++ b/StratumLibrary/StratumNotification.cs @@ -0,0 +1,31 @@ +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; + + +namespace Stratum +{ + /// + /// Represents a Stratum notification + /// + [JsonObject(MemberSerialization.OptIn)] + public class StratumNotification + { + /// + /// Response id, should be null + /// + [JsonProperty(PropertyName = "id")] + public object Id { get; set; } + + /// + /// Method name + /// + [JsonProperty(PropertyName = "method")] + public string Method { get; set; } + + /// + /// Notification data + /// + [JsonProperty(PropertyName = "params")] + public JArray Params { get; set; } + } +}