NotifyEventRequest.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 NotifyEventRequest
  13. {
  14. /// <summary>
  15. /// Timestamp of the moment this message was
  16. ///generated at the Charging Station.
  17. /// </summary>
  18. [Required]
  19. [JsonConverter(typeof(UTCDateTimeConverter))]
  20. public DateTime GeneratedAt { set; get; }
  21. /// <summary>
  22. /// “to be continued” indicator. Indicates whether
  23. // another part of the monitoringData follows in an
  24. ///upcoming notifyMonitoringReportRequest message.
  25. /// Default value when omitted is false
  26. /// </summary>
  27. public bool? Tbc { set; get; }
  28. /// <summary>
  29. /// Sequence number of this message. First
  30. ///message starts at 0
  31. /// </summary>
  32. [Required]
  33. public int SeqNo { set; get; }
  34. /// <summary>List of EventData. An EventData element
  35. /// contains only the Component, Variable and
  36. /// VariableMonitoring data that caused the event. The list of
  37. /// EventData will usally contain one eventData element, but
  38. /// the Charging Station may decide to group multiple events
  39. ///in one notification. For example, when multiple events
  40. /// triggered at the same time.The Id of the request.
  41. /// </summary>
  42. [Required]
  43. public List<EventDataType> EventData { set; get; }
  44. }
  45. }