GetLogRequest.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using EVCB_OCPP.Packet20.DataTypes;
  2. using EVCB_OCPP.Packet20.DataTypes.EnumTypes;
  3. using Newtonsoft.Json;
  4. using Newtonsoft.Json.Converters;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.ComponentModel.DataAnnotations;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace EVCB_OCPP.Packet20.Messages
  12. {
  13. public class GetLogRequest
  14. {
  15. /// <summary>
  16. /// This contains the type of log file that the
  17. /// Charging Station should send.
  18. /// </summary>
  19. [Required]
  20. [JsonConverter(typeof(StringEnumConverter))]
  21. public LogEnumType LogType { set; get; }
  22. /// <summary>
  23. /// The Id of this request
  24. /// </summary>
  25. [Required]
  26. public int RequestId { set; get; }
  27. /// <summary>
  28. /// This specifies how many times the Charging
  29. /// Station must try to upload the log before giving up.If this
  30. /// field is not present, it is left to Charging Station to decide
  31. /// how many times it wants to retry
  32. /// </summary>
  33. public int? Retries { set; get; }
  34. /// <summary>
  35. /// The interval in seconds after which a retry may
  36. /// be attempted.If this field is not present, it is left to
  37. /// Charging Station to decide how long to wait between
  38. /// attempts.
  39. /// </summary>
  40. public int? RetryInterval { set; get; }
  41. /// <summary>
  42. /// This field specifies the requested log and the
  43. /// location to which the log should be sent
  44. /// </summary>
  45. [Required]
  46. public LogParametersType Log { set; get; }
  47. }
  48. }