GetCompositeScheduleRequest.cs 1.0 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 GetCompositeScheduleRequest
  13. {
  14. /// <summary>
  15. /// Length of the requested schedule in seconds
  16. /// </summary>
  17. [Required]
  18. public int Duration { set; get; }
  19. /// <summary>
  20. /// Can be used to force a power or current profile
  21. /// </summary>
  22. [JsonConverter(typeof(StringEnumConverter))]
  23. public ChargingRateUnitEnumType ChargingRateUnit { set; get; }
  24. /// <summary>
  25. /// The ID of the EVSE for which the schedule is
  26. /// requested.When evseid = 0, the Charging Station will
  27. /// calculate the expected consumption for the grid
  28. ///connection.
  29. /// </summary>
  30. [Required]
  31. public int EvseId { set; get; }
  32. }
  33. }