ICommonEvent.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. int GetCount(string sql);
  23. void Subscribe(EventItem item);
  24. void PostInfoLog(string module, string message);
  25. void PostWarningLog(string module, string message);
  26. void PostAlarmLog(string module, string message);
  27. }
  28. }