IVir.cs 863 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.ObjectModel;
  3. using System.Runtime.InteropServices;
  4. using Wayne.ForecourtControl.Fusion;
  5. using Wayne.Lib;
  6. namespace Wayne.ForecourtControl.Vir.Fusion
  7. {
  8. /// <summary>
  9. /// Data structure carrying the information of a physical tank reading.
  10. /// </summary>
  11. [ComVisible(true)]
  12. public interface IVirId
  13. {
  14. string Id{ get; }
  15. }
  16. /// <summary>
  17. /// Data structure carrying the information of a physical tank reading.
  18. /// </summary>
  19. [ComVisible(true)]
  20. public interface IVir
  21. {
  22. /// <summary>
  23. /// Fuel level, read by the probe.
  24. /// </summary>
  25. int Id { get; }
  26. DeviceConnectionState State(string virId);
  27. ReadOnlyCollection<IVirId> VirIds { get; }
  28. event EventHandler<VIRStateChangedEventArgs> OnVirIdStateChange;
  29. }
  30. }