NotifyEVChargingScheduleRequest.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using EVCB_OCPP.Packet20.DataTypes;
  2. using EVCB_OCPP.Packet20.Utilites;
  3. using Newtonsoft.Json;
  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 NotifyEVChargingScheduleRequest
  13. {
  14. /// <summary>
  15. /// Periods contained in the charging profile are
  16. /// relative to this point in time
  17. /// </summary>
  18. [Required]
  19. [JsonConverter(typeof(UTCDateTimeConverter))]
  20. public DateTime TimeBase { set; get; }
  21. // <summary>
  22. /// Defines the EVSE and connector to which the
  23. /// EV is connected.EvseId may not be 0.
  24. /// </summary>
  25. [Required]
  26. public int EvseId { set; get; }
  27. // <summary>
  28. ///Planned energy consumption of the EV over
  29. ///time.Always relative to timeBase
  30. /// </summary>
  31. [Required]
  32. public ChargingScheduleType ChargingSchedule { set; get; }
  33. }
  34. }