1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using System;
- using System.Collections.Generic;
- namespace Vinno.vCloud.Common.FIS
- {
- public interface IvCloudTerminalV2 : IDisposable
- {
- /// <summary>
- /// Terminal Id
- /// </summary>
- string DeviceCode { get; }
- /// <summary>
- /// Server Url
- /// </summary>
- string Url { get; }
- /// <summary>
- /// Server Prefix,Http or https
- /// </summary>
- bool UseSSL { get; }
- /// <summary>
- /// The uniqueId create when terminal created, used to add terminal for client user.
- /// </summary>
- string UniqueId { get; }
- /// <summary>
- /// Gets the status of the Terminal
- /// </summary>
- TerminalStatus Status { get; }
- /// <summary>
- /// 是否支持科研模式
- /// </summary>
- bool IsSupportResearchMode { get; }
- /// <summary>
- /// Raised when the status is changed.
- /// </summary>
- event EventHandler StatusChanged;
- /// <summary>
- /// Get the feature instance by feature enum.
- /// </summary>
- /// <typeparam name="T">The interface of the feature</typeparam>
- /// <param name="featureType">The feature type</param>
- /// <returns>The instance of the feature</returns>
- /// <remarks>
- /// If the feature doesn't exist, this method will return null.
- /// </remarks>
- T GetFeature<T>(TerminalFeatureType featureType) where T : IFeatureV2;
- /// <summary>
- /// Disconnect to server.
- /// </summary>
- void Disconnect();
- /// <summary>
- /// Update enabled feature types.
- /// </summary>
- /// <param name="enabledFeatureTypes">The enabled feature types.</param>
- void UpdateFeatures(IEnumerable<TerminalFeatureType> enabledFeatureTypes);
- /// <summary>
- /// Set the device is Encrypted Show,
- /// </summary>
- /// <param name="isEncryptedShow"></param>
- /// <returns>Set Result,The old server is not applicable,it will be false</returns>
- bool SetIsEncryptedShow(bool isEncryptedShow);
- /// <summary>
- /// Get the device is Encrypted Show,
- /// The old server always is false
- /// </summary>
- /// <returns></returns>
- bool IsEncryptedShow();
- /// <summary>
- /// get terminal Organization name after this must login successed
- /// </summary>
- /// <returns></returns>
- string GetOrganizationName();
- }
- }
|