Пример #1
0
 public RpcResponse(string result, RpcError error = null, string id = null)
 {
     this.result = result;
     this.error  = error;
     this.id     = id;
 }
Пример #2
0
 public RpcException(RpcError rpcerror)
     : base($"RpcError: code [{rpcerror.code}], message [{rpcerror.message}]")
 {
     RpcError = rpcerror;
 }