GetDisplayMessagesRequest.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using EVCB_OCPP.Packet20.DataTypes.EnumTypes;
  2. using Newtonsoft.Json;
  3. using Newtonsoft.Json.Converters;
  4. using NJsonSchema;
  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 GetDisplayMessagesRequest
  14. {
  15. /// <summary>
  16. /// If provided the Charging Station shall return
  17. /// Display Messages of the given ids.This field SHALL NOT
  18. /// contain more ids than set in
  19. /// NumberOfDisplayMessages.maxLimit
  20. /// </summary>
  21. public List<int> Id { set; get; }
  22. /// <summary>
  23. /// The Id of this request
  24. /// </summary>
  25. [Required]
  26. public int RequestId { set; get; }
  27. /// <summary>
  28. /// If provided the Charging Station shall return
  29. ///Display Messages with the given priority only
  30. /// </summary>
  31. [JsonConverter(typeof(StringEnumConverter))]
  32. public MessagePriorityEnumType Priority { set; get; }
  33. /// <summary>
  34. /// If provided the Charging Station shall return
  35. /// Display Messages with the given state only.
  36. /// </summary>
  37. [JsonConverter(typeof(StringEnumConverter))]
  38. public MessageStateEnumType State { set; get; }
  39. }
  40. }