wjc
2023-04-06 75a2f82f91d6568c0b3ea60ea93086e65f8a2e49
HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs
@@ -3,8 +3,8 @@
using System.Collections.Generic;
using Shared;
using HDL_ON.DAL.Server;
using Foundation;
#if __IOS__
using Foundation;
#else
using Com.Videogo.Hdl;
#endif
@@ -51,7 +51,9 @@
            this.InitializationAndroidData((isEzChildAccessToken) =>
            {
                this.SunThread(() =>
                {
                    var list = this.GetVideoDoorLockLockModelsList("notAllowedConfigNetworkModels");
                this.MainThread(() =>
                {
#if __IOS__
@@ -62,13 +64,17 @@
                        this.GetYingshiDeviceList(serials);
                    };
                    EZSDK.IOS.EZSDK.SharedInstance().Delegate = ezsdkDelegate;
                    NSObject[] nSObject = new NSObject[1];
                    nSObject[0] = new NSString("DP1");
                        NSObject[] nSObject = new NSObject[list.Count];
                        for (int i = 0; i < list.Count; i++)
                        {
                            string strValue = list[i];
                            nSObject[i] = new NSString(strValue);
                        }
                    EZSDK.IOS.EZSDK.SharedInstance().ConnectTipModels = nSObject;
                    EZSDK.IOS.EZSDK.SharedInstance().AddEzvizMonitorWithDeviceType(spk);
#else
                HDLEzvizSdk.Instance.JumpToEZScanActivity(Application.Activity,spk);
                    HDLEzvizSdk.Instance.JumpToEZScanActivity(Application.Activity, spk,list);
                HDLEzvizSdk.SetAddCallback(new AndroidIHdlInterface((isBool, serials) =>
                {
                    if (isBool)
@@ -82,6 +88,7 @@
                });
                });
            });
@@ -279,9 +286,9 @@
        /// 获取【门锁型号】列表
        /// </summary>
        /// <returns>返回结果不会为null</returns>
        public List<string> GetVideoDoorLockLockModelsList()
        public List<string> GetVideoDoorLockLockModelsList(string mode = "lockModels")
        {
            return VideDoorLockSend.Current.GetVideoDoorLockLockModelsList();
            return VideDoorLockSend.Current.GetVideoDoorLockLockModelsList(mode);
        }
        /// <summary>
        /// 门锁推送