GetLocalListVersionRequest.cs 660 B

123456789101112131415161718192021222324252627
  1. using EVCB_OCPP.Packet.Features;
  2. using Newtonsoft.Json;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace EVCB_OCPP.Packet.Messages.LocalAuthListManagement
  5. {
  6. public class GetLocalListVersionRequest : IRequest
  7. {
  8. public GetLocalListVersionRequest()
  9. {
  10. Action = Actions.GetLocalListVersion.ToString();
  11. }
  12. [JsonIgnore]
  13. public string Action { set; get; }
  14. public bool TransactionRelated()
  15. {
  16. return false;
  17. }
  18. public bool Validate()
  19. {
  20. return Validator.TryValidateObject(this, new ValidationContext(this), null, true);
  21. }
  22. }
  23. }