ICommunicator.cs 386 B

1234567891011121314
  1. namespace Communicator;
  2. public interface ICommunicator : IDisposable
  3. {
  4. bool Initialize(ICommunicatorProvider communicatorProvider);
  5. void SubscribeDataItem(string dataKey, Action<object> callback);
  6. void UnsubscribeDataItem(string dataKey, Action<object> callback);
  7. }
  8. public interface ICommunicatorProvider
  9. {
  10. void DataChangedNotify(string dataKey, object rawData);
  11. }