Feature.cs 593 B

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