IvCloudTerminalV2.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Vinno.vCloud.Common.FIS
  4. {
  5. public interface IvCloudTerminalV2 : IDisposable
  6. {
  7. /// <summary>
  8. /// Get Terminal name.
  9. /// </summary>
  10. string TerminalName { get; }
  11. /// <summary>
  12. /// Get Terminal mode.
  13. /// </summary>
  14. string TerminalMode { get; }
  15. /// <summary>
  16. /// The uniqueId create when terminal created, used to add terminal for client user.
  17. /// </summary>
  18. string UniqueId { get; }
  19. /// <summary>
  20. /// Gets the status of the Terminal
  21. /// </summary>
  22. TerminalStatus Status { get; }
  23. /// <summary>
  24. /// Raised when the status is changed.
  25. /// </summary>
  26. event EventHandler StatusChanged;
  27. /// <summary>
  28. /// Get the feature instance by feature enum.
  29. /// </summary>
  30. /// <typeparam name="T">The interface of the feature</typeparam>
  31. /// <param name="featureType">The feature type</param>
  32. /// <returns>The instance of the feature</returns>
  33. /// <remarks>
  34. /// If the feature doesn't exist, this method will return null.
  35. /// </remarks>
  36. T GetFeature<T>(TerminalFeatureType featureType) where T : IFeatureV2;
  37. /// <summary>
  38. /// Disconnect to server.
  39. /// </summary>
  40. void Disconnect();
  41. /// <summary>
  42. /// Update enabled feature types.
  43. /// </summary>
  44. /// <param name="enabledFeatureTypes">The enabled feature types.</param>
  45. void UpdateFeatures(IEnumerable<TerminalFeatureType> enabledFeatureTypes);
  46. /// <summary>
  47. /// Set the device is Encrypted Show,
  48. /// </summary>
  49. /// <param name="isEncryptedShow"></param>
  50. /// <returns>Set Result,The old server is not applicable,it will be false</returns>
  51. bool SetIsEncryptedShow(bool isEncryptedShow);
  52. /// <summary>
  53. /// Get the device is Encrypted Show,
  54. /// The old server always is false
  55. /// </summary>
  56. /// <returns></returns>
  57. bool IsEncryptedShow();
  58. }
  59. }