ClearCacheRequest.cs 619 B

12345678910111213141516171819202122232425262728293031323334
  1. using EVCB_OCPP.Packet.Features;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace EVCB_OCPP.Packet.Messages.Core
  9. {
  10. public class ClearCacheRequest : IRequest
  11. {
  12. public ClearCacheRequest()
  13. {
  14. Action = Actions.ClearCache.ToString();
  15. }
  16. [JsonIgnore]
  17. public string Action { set; get; }
  18. public bool TransactionRelated()
  19. {
  20. return false;
  21. }
  22. public bool Validate()
  23. {
  24. return true;
  25. }
  26. }
  27. }