IvCloudTerminalV2.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Vinno.vCloud.Common.FIS
  4. {
  5. public interface IvCloudTerminalV2 : IDisposable
  6. {
  7. /// <summary>
  8. /// Terminal Id
  9. /// </summary>
  10. string DeviceCode { get; }
  11. /// <summary>
  12. /// Server Url
  13. /// </summary>
  14. string Url { get; }
  15. /// <summary>
  16. /// Server Prefix,Http or https
  17. /// </summary>
  18. bool UseSSL { get; }
  19. /// <summary>
  20. /// The uniqueId create when terminal created, used to add terminal for client user.
  21. /// </summary>
  22. string UniqueId { get; }
  23. /// <summary>
  24. /// Gets the status of the Terminal
  25. /// </summary>
  26. TerminalStatus Status { get; }
  27. /// <summary>
  28. /// 是否支持科研模式
  29. /// </summary>
  30. bool IsSupportResearchMode { get; }
  31. /// <summary>
  32. /// Raised when the status is changed.
  33. /// </summary>
  34. event EventHandler StatusChanged;
  35. /// <summary>
  36. /// Get the feature instance by feature enum.
  37. /// </summary>
  38. /// <typeparam name="T">The interface of the feature</typeparam>
  39. /// <param name="featureType">The feature type</param>
  40. /// <returns>The instance of the feature</returns>
  41. /// <remarks>
  42. /// If the feature doesn't exist, this method will return null.
  43. /// </remarks>
  44. T GetFeature<T>(TerminalFeatureType featureType) where T : IFeatureV2;
  45. /// <summary>
  46. /// Disconnect to server.
  47. /// </summary>
  48. void Disconnect();
  49. /// <summary>
  50. /// Update enabled feature types.
  51. /// </summary>
  52. /// <param name="enabledFeatureTypes">The enabled feature types.</param>
  53. void UpdateFeatures(IEnumerable<TerminalFeatureType> enabledFeatureTypes);
  54. /// <summary>
  55. /// Set the device is Encrypted Show,
  56. /// </summary>
  57. /// <param name="isEncryptedShow"></param>
  58. /// <returns>Set Result,The old server is not applicable,it will be false</returns>
  59. bool SetIsEncryptedShow(bool isEncryptedShow);
  60. /// <summary>
  61. /// Get the device is Encrypted Show,
  62. /// The old server always is false
  63. /// </summary>
  64. /// <returns></returns>
  65. bool IsEncryptedShow();
  66. /// <summary>
  67. /// get terminal Organization name after this must login successed
  68. /// </summary>
  69. /// <returns></returns>
  70. string GetOrganizationName();
  71. }
  72. }