示例#1
0
 private AlarmClient GetAlarmClient(IVideoSourceConfig vsConfig)
 {
     if (vsConfig != null && vsConfig.Type.StartsWith("HKDVR"))
     {
         return(CHKDVRDevice.GetAlarmClient(vsConfig.IP, (short)vsConfig.Port, vsConfig.UserName, vsConfig.Password));
     }
     return(null);
 }
示例#2
0
 private AlarmClient GetAlarmClient()
 {
     if (AlarmOutConfig != null && !AlarmOutConfig.IP.Equals(""))
     {
         return(CHKDVRDevice.GetAlarmClient(AlarmOutConfig.IP, (short)AlarmOutConfig.Port, AlarmOutConfig.UserName, AlarmOutConfig.Password));
     }
     return(null);
 }
示例#3
0
 private AlarmClient GetDVRAlarmClient()
 {
     if (LampConfig != null)
     {
         return(CHKDVRDevice.GetAlarmClient(LampConfig.IP, (short)LampConfig.Port, LampConfig.UserName, LampConfig.Password));
     }
     return(null);
 }
示例#4
0
 private AlarmClient GetDVRAlarmClient()
 {
     if (TrumpetConfig != null)
     {
         return(CHKDVRDevice.GetAlarmClient(TrumpetConfig.IP, (short)TrumpetConfig.Port, TrumpetConfig.UserName, TrumpetConfig.Password));
     }
     return(null);
 }
示例#5
0
        public AlarmClient GetAlarmClient(String ip, String username, String password)
        {
            CHKDVRDevice device = GetDevice(ip, username, password, false);

            lock (mDevices)
            {
                if (device != null)
                {
                    return(device.GetAlarmClient());
                }
                return(null);
            }
        }