NotifyCustomerInformationRequest.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using EVCB_OCPP.Packet20.Utilites;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace EVCB_OCPP.Packet20.Messages
  10. {
  11. public class NotifyCustomerInformationRequest
  12. {
  13. /// <summary>
  14. /// Part of) the requested data. No format
  15. /// specified in which the data is returned.Should be human
  16. /// readable.
  17. /// </summary>
  18. [StringLength(512, MinimumLength = 0)]
  19. [Required]
  20. public string Data { 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>
  35. /// Timestamp of the moment this message was
  36. ///generated at the Charging Station.
  37. /// </summary>
  38. [Required]
  39. [JsonConverter(typeof(UTCDateTimeConverter))]
  40. public DateTime GeneratedAt { set; get; }
  41. /// <summary>
  42. /// The Id of the request.
  43. /// </summary>
  44. [Required]
  45. public int RequestId { set; get; }
  46. }
  47. }