UIInterfaces.cs 664 B

12345678910111213141516171819202122232425262728
  1. namespace ServiceBase;
  2. /// <summary>
  3. /// EEMS UI -> EEMS Server
  4. /// </summary>
  5. public interface IUICaller
  6. {
  7. Task<bool> RequestDeviceLists();
  8. Task<bool> UpdateDeviceInfo(DeviceInfo deviceInfo);
  9. }
  10. /// <summary>
  11. /// EEMS Server -> EEMS UI
  12. /// </summary>
  13. public interface IUIProvider
  14. {
  15. Task<bool> OnlineStatusNotify(Guid guid, bool onlineStatus);
  16. Task<bool> UpdateDeviceList(IEnumerable<DeviceInfo> device);
  17. Task<bool> UpdateDevice(DeviceInfo device);
  18. Task<bool> InsertNewDevice(DeviceInfo deviceInfo);
  19. Task<bool> UpdateRealtimeData(Guid guid, Dictionary<string, object> data);
  20. }
  21. public enum FileType : byte
  22. {
  23. Config,
  24. Recipe
  25. }