ClientInterfaces.cs 764 B

1234567891011121314151617181920212223
  1. namespace ServiceBase;
  2. /// <summary>
  3. /// EEMS Client -> EEMS Server
  4. /// </summary>
  5. public interface IClientCaller : IDisposable
  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. Task<bool> UpdateAlarm(IEnumerable<Alarm> alarms);
  11. Task<bool> UpdateRecipeInfo(Recipe recipeInfo);
  12. }
  13. /// <summary>
  14. /// EEMS Server -> EEMS Client
  15. /// </summary>
  16. public interface IClientProvider
  17. {
  18. Task<bool> UpdateDeviceInfo(Guid guid, DeviceInfo deviceInfo);
  19. Task<bool> RequestFile(Guid guid, FileType fileType);
  20. Task<bool> PushFile(Guid guid, FileType fileType, byte[] buffer, int current, int total);
  21. }