Browse Source

Continue with last commit

felix 2 years ago
parent
commit
c2df567ea0

+ 7 - 0
Vinno.vCloud.Common.FIS/IvCloudTerminalV2.cs

@@ -58,5 +58,12 @@ namespace Vinno.vCloud.Common.FIS
         /// <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();
     }
 }

+ 13 - 2
Vinno.vCloud.Common.FIS/vCloudTerminalV2.cs

@@ -244,9 +244,8 @@ namespace Vinno.vCloud.Common.FIS
         }
 
         /// <summary>
-        /// Get Device Is Encrypted Show
+        /// Get Device Info
         /// </summary>
-        /// <param name="isEncryptedShow"></param>
         /// <returns></returns>
         public void GetDeviceByToken()
         {
@@ -667,5 +666,17 @@ namespace Vinno.vCloud.Common.FIS
                     return null;
             }
         }
+
+        public bool IsEncryptedShow()
+        {
+            if (_deviceInfo == null)
+            {
+                return false;
+            }
+            else
+            {
+                return _deviceInfo.IsEncryptedShow;
+            }
+        }
     }
 }