SendLocalListRequest.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using EVCB_OCPP.Packet20.DataTypes;
  2. using EVCB_OCPP.Packet20.DataTypes.EnumTypes;
  3. using Newtonsoft.Json;
  4. using Newtonsoft.Json.Converters;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.ComponentModel.DataAnnotations;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace EVCB_OCPP.Packet20.Messages
  12. {
  13. public class SendLocalListRequest
  14. {
  15. /// <summary>
  16. /// In case of a full update this is the version
  17. /// number of the full list.In case of a differential update it is
  18. ///the version number of the list after the update has been
  19. ///applied.
  20. /// </summary>
  21. [Required]
  22. public int VersionNumber { set; get; }
  23. /// <summary>
  24. /// This contains the type of update (full or
  25. /// differential) of this request.
  26. /// </summary>
  27. [Required]
  28. [JsonConverter(typeof(StringEnumConverter))]
  29. public UpdateEnumType UpdateType { set; get; }
  30. /// <summary>
  31. /// This contains the Local Authorization List
  32. ///entries.
  33. /// </summary>
  34. public List<AuthorizationData> LocalAuthorizationList { set; get; }
  35. }
  36. }