Interfaces.cs 829 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Collections;
  2. using System.Collections.Concurrent;
  3. using System.Collections.Generic;
  4. namespace RTCommunicatorBase;
  5. public interface IRTMini8Sender
  6. {
  7. ConcurrentDictionary<string, ST_CHANNEL_Notify> ChannelData { get; }
  8. bool Initialize(IRTMini8Provider provider);
  9. bool StartService(string ip, int port);
  10. bool SelectConfigFile(string name);
  11. bool CloseService();
  12. }
  13. public interface IConnectNotify
  14. {
  15. void Connected(string ip, int port);
  16. void DisConnected(string ip, int port);
  17. }
  18. public interface IRTMini8Provider : IConnectNotify
  19. {
  20. void CurrentTempConfigFile(string fileName);
  21. void ChannelAlarmNotify(ST_ALARM_Notify alarm);
  22. void ChannelRealtimeNotify(ST_CHANNEL_Notify channel);
  23. void Mini8ConnectNotify(byte mini8Index);
  24. void Mini8DisconnectNotify(byte mini8);
  25. }