12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using RawRabbit.Configuration.Exchange;
- using RawRabbit.Enrichers.Attributes;
- namespace Applications.PumpInfoToRemote
- {
- public abstract class JsonRpcObject
- {
- public string JsonRpc => "2.0";
- public string Method { get; set; }
- public List<JsonRpcObjectMethodParameter> Params { get; set; }
- }
- public class JsonRpcObjectMethodParameter
- {
- public string Name { get; set; }
- public string Value { get; set; }
- }
- public class NotificationRpc : JsonRpcObject
- {
-
- }
- public class NotificationResponse : JsonRpcObject
- {
- }
- public class ResponseRpc : JsonRpcObject
- {
- public int Id { get; set; }
- public string Result { get; set; }
- }
- public class RequestRpc : JsonRpcObject
- {
- public int Id { get; set; }
- }
- }
|