FirmwareStatusNotificationRequest.cs 1008 B

1234567891011121314151617181920212223242526272829303132
  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 FirmwareStatusNotificationRequest
  13. {
  14. /// <summary>
  15. /// This contains the progress status of the
  16. ///firmware installation.
  17. /// </summary>
  18. [Required]
  19. [JsonConverter(typeof(StringEnumConverter))]
  20. public FirmwareStatusEnumType Status { set; get; }
  21. /// <summary>
  22. /// The request id that was provided in the
  23. /// UpdateFirmwareRequest that started this firmware
  24. /// update. This field is mandatory, unless the message was
  25. /// triggered by a TriggerMessageRequest AND there is no
  26. /// firmware update ongoing
  27. /// </summary>
  28. public int RequestId { set; get; }
  29. }
  30. }