OCPPResult.cs 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using Evcb.Service.Service.Common;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OCPPServer.Common
  8. {
  9. public class OCPPResult : IResult
  10. {
  11. public Guid ID
  12. {
  13. get;
  14. private set;
  15. }
  16. public bool Success
  17. {
  18. get;
  19. set;
  20. }
  21. public string Message
  22. {
  23. get;
  24. set;
  25. }
  26. public Exception Exception
  27. {
  28. get;
  29. set;
  30. }
  31. public List<IResult> InnerResults
  32. {
  33. get;
  34. protected set;
  35. }
  36. public object Payload
  37. {
  38. get;
  39. set;
  40. }
  41. public OCPPResult()
  42. : this(false)
  43. {
  44. }
  45. public OCPPResult(bool success)
  46. {
  47. ID = Guid.NewGuid();
  48. Success = success;
  49. InnerResults = new List<IResult>();
  50. }
  51. }
  52. }