ClientInterfaces.cs 578 B

12345678910111213141516171819202122
  1. namespace ServiceBase;
  2. /// <summary>
  3. /// EEMS Client -> EEMS Server
  4. /// </summary>
  5. public interface IClientCaller
  6. {
  7. Task<Guid> RegisterDevice(DeviceInfo deviceInfo);
  8. Task<bool> FilePack(Guid guid, byte[] buffer, int current, int total);
  9. Task<bool> UpdateRealTimeData(Dictionary<string, object> realtimeData);
  10. }
  11. /// <summary>
  12. /// EEMS Server -> EEMS Client
  13. /// </summary>
  14. public interface IClientProvider
  15. {
  16. Task<bool> RequestFile(Guid guid, FileType fileType);
  17. Task<bool> PushFile(Guid guid, FileType fileType, byte[] buffer, int current, int total);
  18. }