SecurityEventNotificationRequest.cs 981 B

123456789101112131415161718192021222324252627282930313233343536
  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 SecurityEventNotificationRequest
  12. {
  13. /// <summary>
  14. /// Type of the security event. This value should be
  15. ///taken from the Security events list.
  16. /// </summary>
  17. [Required]
  18. [StringLength(50, MinimumLength = 0)]
  19. public string Type { set; get; }
  20. /// <summary>
  21. /// Date and time at which the event occurred
  22. /// </summary>
  23. [Required]
  24. [JsonConverter(typeof(UTCDateTimeConverter))]
  25. public DateTime Timestamp { set; get; }
  26. /// <summary>
  27. /// Additional information about the occurred
  28. ///security event.
  29. /// </summary>
  30. public string TechInfo { set; get; }
  31. }
  32. }