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,37 +51,44 @@
            this.InitializationAndroidData((isEzChildAccessToken) =>
            {
                this.MainThread(() =>
                this.SunThread(() =>
                {
#if __IOS__
                    //跳转添加萤石设备
                    ezsdkDelegate = new IosIHdlInterface();
                    ezsdkDelegate.mAction += (serials) =>
                    var list = this.GetVideoDoorLockLockModelsList("notAllowedConfigNetworkModels");
                    this.MainThread(() =>
                    {
                        this.GetYingshiDeviceList(serials);
                    };
                    EZSDK.IOS.EZSDK.SharedInstance().Delegate = ezsdkDelegate;
                    NSObject[] nSObject = new NSObject[1];
                    nSObject[0] = new NSString("DP1");
                    EZSDK.IOS.EZSDK.SharedInstance().ConnectTipModels = nSObject;
                    EZSDK.IOS.EZSDK.SharedInstance().AddEzvizMonitorWithDeviceType(spk);
#if __IOS__
                        //跳转添加萤石设备
                        ezsdkDelegate = new IosIHdlInterface();
                        ezsdkDelegate.mAction += (serials) =>
                        {
                            this.GetYingshiDeviceList(serials);
                        };
                        EZSDK.IOS.EZSDK.SharedInstance().Delegate = ezsdkDelegate;
                        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.SetAddCallback(new AndroidIHdlInterface((isBool, serials) =>
                {
                    if (isBool)
                    HDLEzvizSdk.Instance.JumpToEZScanActivity(Application.Activity, spk,list);
                        HDLEzvizSdk.SetAddCallback(new AndroidIHdlInterface((isBool, serials) =>
                    {
                        this.GetYingshiDeviceList(serials);
                    }
                        if (isBool)
                        {
                            this.GetYingshiDeviceList(serials);
                        }
                }));
                    }));
#endif
                    });
                });
            });
@@ -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>
        /// 门锁推送
@@ -535,6 +542,7 @@
            collect,//收藏
            room,//房间
            push,//推送
            sanfan,//三方
        }
#if __IOS__