Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 private AlarmClient GetDVRAlarmClient()
 {
     if (LampConfig != null)
     {
         return(CHKDVRDevice.GetAlarmClient(LampConfig.IP, (short)LampConfig.Port, LampConfig.UserName, LampConfig.Password));
     }
     return(null);
 }
Exemplo n.º 4
0
 private AlarmClient GetDVRAlarmClient()
 {
     if (TrumpetConfig != null)
     {
         return(CHKDVRDevice.GetAlarmClient(TrumpetConfig.IP, (short)TrumpetConfig.Port, TrumpetConfig.UserName, TrumpetConfig.Password));
     }
     return(null);
 }
Exemplo n.º 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);
            }
        }