LocalBusinessService.cs 748 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using EVCB_OCPP.Packet.Messages.SubTypes;
  7. using EVCB_OCPP.WSServer.Dto;
  8. namespace EVCB_OCPP.WSServer.Service
  9. {
  10. public class LocalBusinessService : IBusinessService
  11. {
  12. string customerId = string.Empty;
  13. public LocalBusinessService(string customerId)
  14. {
  15. this.customerId = customerId;
  16. }
  17. public IdTagInfo Authorize(string chargeBoxId, string idTag)
  18. {
  19. return new IdTagInfo() { status = AuthorizationStatus.Accepted };
  20. }
  21. public void NotifyFaultStatus(ErrorDetails details)
  22. {
  23. }
  24. }
  25. }