NotifyReportRequest.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 NotifyReportRequest
  13. {
  14. /// <summary>
  15. /// The id of the GetReportRequest or
  16. /// GetBaseReportRequest that 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 ReportData
  42. /// </summary>
  43. public List<ReportDataType> ReportData { set; get; }
  44. }
  45. }