IvStation.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using System.Collections.Generic;
  3. using Vinno.vCloud.Common.FIS.Remedicals;
  4. namespace Vinno.vCloud.Common.FIS.vStation
  5. {
  6. public interface IvStation
  7. {
  8. /// <summary>
  9. /// IP Address
  10. /// </summary>
  11. string IpAddress { get; set; }
  12. /// <summary>
  13. /// Port
  14. /// </summary>
  15. string Port { get; set; }
  16. /// <summary>
  17. /// Time Out
  18. /// </summary>
  19. int TimeOut { get; set; }
  20. /// <summary>
  21. /// Test whether the network is ok or not.
  22. /// </summary>
  23. /// <returns></returns>
  24. bool TestConnection();
  25. /// <summary>
  26. /// Connect, Upload Files, Disconnect
  27. /// </summary>
  28. /// <param name="vidData"></param>
  29. void UploadFiles(IEnumerable<vStationVidData> vidData);
  30. /// <summary>
  31. /// Create vStationVidData
  32. /// </summary>
  33. /// <param name="filePath">Vid File Path</param>
  34. /// <param name="status">Upload Status</param>
  35. /// <returns></returns>
  36. vStationVidData CreatevStationVidData(string filePath, UploadStatus status);
  37. /// <summary>
  38. /// Load all vStationVidDatas;
  39. /// </summary>
  40. void LoadvStationVidData();
  41. /// <summary>
  42. /// Get all vStationVidDatas
  43. /// </summary>
  44. /// <returns></returns>
  45. IEnumerable<vStationVidData> GetvStationVidDatas();
  46. /// <summary>
  47. /// Event of vStationVidData Changed
  48. /// </summary>
  49. event EventHandler<vStationVidDataChangedEventArgs> vStationVidDataChanged;
  50. void Dispose();
  51. }
  52. }