Feature.cs 698 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace EVCB_OCPP.Packet20.Features
  7. {
  8. /// <summary>
  9. /// Abstract class. Feature ties {Request} and {Confirmation} types together with an action name.
  10. /// Can handle a incoming request by forwarding it to the feature {Profile}.
  11. /// </summary>
  12. public abstract class Feature
  13. {
  14. /// <summary>
  15. /// Get the {Request} for the feature.
  16. /// return the {Request}
  17. /// </summary>
  18. public abstract Type GetRequestType();
  19. public abstract Type GetConfirmationType();
  20. public abstract string GetAction();
  21. }
  22. }