Class1.cs 651 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Device;
  2. namespace ServiceBase;
  3. /// <summary>
  4. /// EEMS Client -> EEMS Server
  5. /// </summary>
  6. public interface IClientCaller
  7. {
  8. Task<Guid> RegisterDevice(DeviceInfo deviceInfo);
  9. Task<bool> FilePack(Guid guid, byte[] buffer, int current, int total);
  10. }
  11. /// <summary>
  12. /// EEMS Server -> EEMS Client
  13. /// </summary>
  14. public interface IClientProvider
  15. {
  16. Task RequestFile(Guid guid, FileType fileType);
  17. }
  18. /// <summary>
  19. /// EEMS UI -> EEMS Server
  20. /// </summary>
  21. public interface IUICaller
  22. {
  23. }
  24. /// <summary>
  25. /// EEMS Server -> EEMS UI
  26. /// </summary>
  27. public interface IUIProvider
  28. {
  29. }
  30. public enum FileType : byte
  31. {
  32. Config,
  33. Recipe
  34. }