ResetRequest.cs 835 B

1234567891011121314151617181920212223242526272829
  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 ResetRequest
  13. {
  14. /// <summary>
  15. /// This contains the type of reset that the
  16. ///Charging Station or EVSE should perform
  17. /// </summary>
  18. [Required]
  19. [JsonConverter(typeof(StringEnumConverter))]
  20. public ResetEnumType Type { set; get; }
  21. /// <summary>
  22. /// This contains the ID of a specific EVSE that
  23. ///needs to be reset, instead of the entire Charging Station.
  24. /// </summary>
  25. public int? EvseId { set; get; }
  26. }
  27. }