Convertor.cs 441 B

12345678910111213141516171819
  1. using EVCB_OCPP.Packet.Features;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace EVCB_OCPP.WSServer.Helper
  8. {
  9. public static class Convertor
  10. {
  11. public static Actions GetAction(string action)
  12. {
  13. Actions result = Actions.None;
  14. Enum.TryParse<Actions>(action, out result);
  15. return result;
  16. }
  17. }
  18. }