GetConfigurationRequest.cs 796 B

12345678910111213141516171819202122232425262728293031323334
  1. using EVCB_OCPP.Packet.Features;
  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.Packet.Messages.Core
  10. {
  11. public class GetConfigurationRequest : IRequest
  12. {
  13. public GetConfigurationRequest()
  14. {
  15. Action = Actions.GetConfiguration.ToString();
  16. }
  17. [JsonIgnore]
  18. public string Action { set; get; }
  19. public List<string> key { set; get; }
  20. public bool TransactionRelated()
  21. {
  22. return false;
  23. }
  24. public bool Validate()
  25. {
  26. return Validator.TryValidateObject(this, new ValidationContext(this), null, true);
  27. }
  28. }
  29. }