EVSE.cs 824 B

123456789101112131415161718192021222324252627282930313233343536
  1. using Newtonsoft.Json;
  2. using Newtonsoft.Json.Converters;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Web;
  8. namespace EVCB_OCPP.WEBAPI.Models.WebAPI.Dto
  9. {
  10. public class EVSE
  11. {
  12. [MaxLength(25)]
  13. public string ChargeBoxId { set; get; }
  14. public int StationId { set; get; }
  15. public int RatedPower { set; get; }
  16. public List<Connector> Connectors { set; get; }
  17. [JsonConverter(typeof(StringEnumConverter))]
  18. public Status Status { set; get; }
  19. public GeoLocation Coordinates { set; get; }
  20. public DateTime LastUpdated { set; get; }
  21. [JsonIgnore]
  22. public int NumberofConnectors { set; get; }
  23. public string ChargeBoxSystemID { set; get; }
  24. }
  25. }