GetMonitoringReportRequest.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 GetMonitoringReportRequest
  14. {
  15. /// <summary>
  16. /// The Id of the request.
  17. /// </summary>
  18. [Required]
  19. public int RequestId { set; get; }
  20. /// <summary>
  21. /// This field contains criteria for components for
  22. ///which a monitoring report is requested
  23. /// </summary>
  24. [Required]
  25. [JsonConverter(typeof(StringEnumConverter))]
  26. public MonitoringCriterionEnumType MonitoringCriteria { set; get; }
  27. /// <summary>
  28. /// This field specifies the components and
  29. ///variables for which a monitoring report is requested
  30. /// </summary>
  31. public List<ComponentVariableType> ComponentVariable { set; get; }
  32. }
  33. }