UpdateFirmwareRequest.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using EVCB_OCPP.Packet20.DataTypes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace EVCB_OCPP.Packet20.Messages
  9. {
  10. public class UpdateFirmwareRequest
  11. {
  12. /// <summary>
  13. /// This specifies how many times Charging
  14. /// Station must try to download the firmware before giving
  15. ///up.If this field is not present, it is left to Charging Station
  16. ///to decide how many times it wants to retry.
  17. /// </summary>
  18. public int? Retries { set; get; }
  19. /// <summary>
  20. /// The interval in seconds after which a retry may
  21. /// be attempted.If this field is not present, it is left to
  22. /// Charging Station to decide how long to wait between
  23. /// attempts.
  24. /// </summary>
  25. public int? retryInterval { set; get; }
  26. /// <summary>
  27. /// The Id of this request
  28. /// </summary>
  29. [Required]
  30. public int RequestId { set; get; }
  31. /// <summary>
  32. /// Specifies the firmware to be updated on the
  33. ///Charging Station
  34. /// </summary>
  35. [Required]
  36. public FirmwareType Firmware { set; get; }
  37. }
  38. }