private List <RealAnalyseInfo> GetAllRealAnalysis()
        {
            uint count = 0;

            IVXProtocol.IasSdk_GetRTAnalysisNum(m_loginIDRias, out count);
            //RealAnalyseInfo temp = Framework.Container.Instance.IVXProtocol.IasSdk_GetRTAnalysisInfoByID(m_loginIDRias, 1);
            return(IVXProtocol.IasSdk_GetRTAnalysisList(m_loginIDRias, count));
        }
        public uint GetRealAnalyseCapableLeft()
        {
            uint total = 0;
            uint count = 0;

            IVXProtocol.IasSdk_GetServiceCapacity(m_loginIDRias, out total);
            IVXProtocol.IasSdk_GetRTAnalysisNum(m_loginIDRias, out count);
            return(total - count);
        }
Exemple #3
0
        public List <RealAnalyseInfo> GetAllRealAnalysis()
        {
            //List<RealAnalyseInfo> list = new List<RealAnalyseInfo>();
            //for (int i = 1; i < 18; i++)
            //{
            //    RealAnalyseInfo info = new RealAnalyseInfo()
            //    {
            //        dwAnalysisID = (uint)i,
            //        realAnalyseServerInfo = new RealAnalyseServerUnitInfo()
            //        {
            //            dwServerID = (uint)i,
            //            szServerIp = "192.168.2."+i,
            //            wServerPort = (ushort)(5420+i),
            //            serverType = E_IASSDK_SERVER_UNIT_TYPE.E_IASSDK_ANALYSIS_UNIT_TWO,
            //        },
            //        realAnalyseParam = new RealAnalyseParam()
            //        {
            //            dwAnalysisPlanID = (uint)i,
            //            eAlgthmType =  (E_IASSDK_VIDEO_ANALYZE_TYPE)(i%5),
            //            szAnalysisParam = "",
            //            szArsIp = "192.168.1." + i,
            //            wArsPort = (ushort)(5410 + i),
            //            realCameraInfo = new RealCameraInfo()
            //            {
            //                dwDevicePort = 37777,
            //                dwDeviceType = 1025,
            //                szCameraID = i.ToString(),
            //                szChannelID = i.ToString(),
            //                szDeviceIP = "192.168.88.250",
            //                szLoginPwd ="admin",
            //                szLoginUser = "******",
            //            },
            //        },
            //        dwConSerialNum = (uint)(i%2),
            //        eStatusType =  (E_IASSDK_REAL_ANALYZE_STATUS_TYPE)(i%2),

            //    };
            //    list.Add(info);
            //}
            //return list;

            uint count = 0;

            IVXProtocol.IasSdk_GetRTAnalysisNum(m_loginID, out count);
            //RealAnalyseInfo temp = IVXProtocol.IasSdk_GetRTAnalysisInfoByID(m_loginID, 1);
            return(IVXProtocol.IasSdk_GetRTAnalysisList(m_loginID, count));
        }