|
|
@@ -1,15 +1,13 @@
|
|
|
-using System;
|
|
|
-using System.Collections.Generic;
|
|
|
-using System.Linq;
|
|
|
-using System.Text;
|
|
|
-using System.Threading.Tasks;
|
|
|
+namespace Communicator;
|
|
|
|
|
|
-namespace Communicator
|
|
|
+public interface ICommunicator : IDisposable
|
|
|
{
|
|
|
- public interface ICommunicator : IDisposable
|
|
|
- {
|
|
|
- bool Initialize();
|
|
|
- void SubscribeDataItem(string dataKey, Action<object> callback);
|
|
|
- void UnsubscribeDataItem(string dataKey, Action<object> callback);
|
|
|
- }
|
|
|
+ bool Initialize(ICommunicatorProvider communicatorProvider);
|
|
|
+ void SubscribeDataItem(string dataKey, Action<object> callback);
|
|
|
+ void UnsubscribeDataItem(string dataKey, Action<object> callback);
|
|
|
+}
|
|
|
+
|
|
|
+public interface ICommunicatorProvider
|
|
|
+{
|
|
|
+ void DataChangedNotify(string dataKey, object rawData);
|
|
|
}
|