PublishFirmwareStatusNotificationRequest.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using EVCB_OCPP.Packet20.DataTypes.EnumTypes;
  2. using Newtonsoft.Json;
  3. using Newtonsoft.Json.Converters;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace EVCB_OCPP.Packet20.Messages
  11. {
  12. public class PublishFirmwareStatusNotificationRequest
  13. {
  14. /// <summary>
  15. ///This contains the progress status of the
  16. ///publishfirmware installation
  17. /// </summary>
  18. [Required]
  19. [JsonConverter(typeof(StringEnumConverter))]
  20. public PublishFirmwareStatusEnumType Status { set; get; }
  21. /// <summary>
  22. /// Required if status is Published. Can be multiple
  23. ///URI’s, if the Local Controller supports e.g.HTTP, HTTPS,
  24. ///and FTP.
  25. /// </summary>
  26. public List<string> Location { set; get; }
  27. /// <summary>
  28. /// The request id that was provided in the
  29. /// PublishFirmwareRequest which triggered this action.
  30. /// </summary>
  31. public int? RequestId { set; get; }
  32. }
  33. }