PublishFirmwareRequest.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace EVCB_OCPP.Packet20.Messages
  8. {
  9. public class PublishFirmwareRequest
  10. {
  11. /// <summary>
  12. /// This contains a string containing a URI pointing
  13. ///to a location from which to retrieve the firmware.
  14. /// </summary>
  15. [Required]
  16. [StringLength(512, MinimumLength = 0)]
  17. public string Location { set; get; }
  18. /// <summary>
  19. /// This specifies how many times Charging
  20. /// Station must try to download the firmware before giving
  21. ///up.If this field is not present, it is left to Charging Station
  22. ///to decide how many times it wants to retry.
  23. /// </summary>
  24. public int? Retries { set; get; }
  25. /// <summary>
  26. /// The MD5 checksum over the entire firmware
  27. ///file as a hexadecimal string of length 32.
  28. /// </summary>
  29. [Required]
  30. [StringLength(32, MinimumLength = 0)]
  31. public string Checksum { set; get; }
  32. /// <summary>
  33. /// The Id of the request.
  34. /// </summary>
  35. [Required]
  36. public int RequestId { set; get; }
  37. /// <summary>
  38. /// The interval in seconds after which a retry may
  39. /// be attempted.If this field is not present, it is left to
  40. /// Charging Station to decide how long to wait between
  41. /// attempts.
  42. /// </summary>
  43. public int? RetryInterval { set; get; }
  44. }
  45. }