IScrewDriver.cs 563 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using TeamAAS_VP.Enums;
  7. namespace TeamAAS_VP.Interfaces
  8. {
  9. public interface IScrewDriver : IDisposable
  10. {
  11. bool Connect();
  12. bool GetData();
  13. Task<bool> ConnectAsync();
  14. Task<bool> GetDataAsync();
  15. bool IsConnected { get; }
  16. string IPAdress { get; }
  17. int Port { get; }
  18. ElectricScrewdriverBrand Brand { get; }
  19. event Action<object, bool> ConnectStateChangedEvent;
  20. }
  21. }