NotifyMonitoringReportRequest.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 NotifyMonitoringReportRequest
  13. {
  14. /// <summary>
  15. /// The id of the GetMonitoringRequest that
  16. ///requested this report
  17. /// </summary>
  18. [Required]
  19. public int RequestId { set; get; }
  20. /// <summary>
  21. /// “to be continued” indicator. Indicates whether
  22. // another part of the monitoringData follows in an
  23. ///upcoming notifyMonitoringReportRequest message.
  24. /// Default value when omitted is false
  25. /// </summary>
  26. public bool? Tbc { set; get; }
  27. /// <summary>
  28. /// Sequence number of this message. First
  29. ///message starts at 0
  30. /// </summary>
  31. [Required]
  32. public int SeqNo { set; get; }
  33. /// <summary>
  34. /// Timestamp of the moment this message was
  35. ///generated at the Charging Station.
  36. /// </summary>
  37. [Required]
  38. [JsonConverter(typeof(UTCDateTimeConverter))]
  39. public DateTime GeneratedAt { set; get; }
  40. /// <summary>
  41. /// List of MonitoringData containing monitoring
  42. ///settings.
  43. /// </summary>
  44. public List<MonitoringDataType> Monitor { set; get; }
  45. }
  46. }