UIInterfaces.cs 765 B

123456789101112131415161718192021222324252627282930
  1. namespace ServiceBase;
  2. /// <summary>
  3. /// EEMS UI -> EEMS Server
  4. /// </summary>
  5. public interface IUICaller
  6. {
  7. Task<IEnumerable<DeviceInfo>> RequestDeviceLists();
  8. Task<bool> UpdateDeviceInfo(DeviceInfo deviceInfo);
  9. Task<bool> RemoveDevice(Guid guid);
  10. }
  11. /// <summary>
  12. /// EEMS Server -> EEMS UI
  13. /// </summary>
  14. public interface IUIProvider
  15. {
  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. Task<bool> UpdateAlarm(IEnumerable<Alarm> alarms);
  21. Task<bool> UpdateRecipeInfo(Recipe recipeInfo);
  22. }
  23. public enum FileType : byte
  24. {
  25. Config,
  26. Recipe
  27. }