ICommonEvent.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Aitex.Core.Util;
  6. namespace Aitex.Core.RT.Event
  7. {
  8. public interface ICommonEvent
  9. {
  10. void WriteEvent(string eventName);
  11. void WriteEvent(string eventName, SerializableDictionary<string, string> dvid);
  12. void WriteEvent(string eventName, SerializableDictionary<string, object> dvid);
  13. void WriteEvent(string module, string eventName, params object[] args);
  14. void WriteEvent(string module, string eventName, SerializableDictionary<string, string> dvid, params object[] args);
  15. void PostNotificationMessage(string message);
  16. void PostPopDialogMessage(EventLevel level, string title, string message);
  17. void PostKickoutMessage(string message);
  18. void PostSoundMessage(string message);
  19. List<EventItem> GetAlarmEvent();
  20. void ClearAlarmEvent();
  21. List<EventItem> QueryDBEvent(string sql);
  22. void Subscribe(EventItem item);
  23. void PostInfoLog(string module, string message);
  24. void PostWarningLog(string module, string message);
  25. void PostAlarmLog(string module, string message);
  26. }
  27. }