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); }
private AlarmClient GetAlarmClient() { if (AlarmOutConfig != null && !AlarmOutConfig.IP.Equals("")) { return(CHKDVRDevice.GetAlarmClient(AlarmOutConfig.IP, (short)AlarmOutConfig.Port, AlarmOutConfig.UserName, AlarmOutConfig.Password)); } return(null); }
private AlarmClient GetDVRAlarmClient() { if (LampConfig != null) { return(CHKDVRDevice.GetAlarmClient(LampConfig.IP, (short)LampConfig.Port, LampConfig.UserName, LampConfig.Password)); } return(null); }
private AlarmClient GetDVRAlarmClient() { if (TrumpetConfig != null) { return(CHKDVRDevice.GetAlarmClient(TrumpetConfig.IP, (short)TrumpetConfig.Port, TrumpetConfig.UserName, TrumpetConfig.Password)); } return(null); }
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); } }