RpcRequest.cs 457 B

123456789101112131415161718192021222324252627282930313233
  1. using JsonRPC4.Common;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace JsonRPC4.Router
  7. {
  8. public class RpcRequest
  9. {
  10. public RpcId Id
  11. {
  12. get;
  13. }
  14. public string Method
  15. {
  16. get;
  17. }
  18. public RpcParameters Parameters
  19. {
  20. get;
  21. }
  22. public RpcRequest(RpcId id, string method, RpcParameters parameters = null)
  23. {
  24. Id = id;
  25. Method = method;
  26. Parameters = parameters;
  27. }
  28. }
  29. }