LocalBusinessService.cs 606 B

1234567891011121314151617181920212223242526272829
  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. namespace EVCB_OCPP.WSServer.BusinessService
  8. {
  9. public class LocalBusinessService : IBusinessService
  10. {
  11. string customerId = string.Empty;
  12. public LocalBusinessService(string customerId)
  13. {
  14. this.customerId = customerId;
  15. }
  16. public IdTagInfo Authorize(string idTag)
  17. {
  18. return new IdTagInfo() { status = AuthorizationStatus.Accepted };
  19. }
  20. }
  21. }