Beispiel #1
0
 public Camera(WebCommander commander, LoginResult session, Channel data)
 {
     InArchiveMode = false;
     _commander = commander;
     _session = session;
     _data = data;
 }
Beispiel #2
0
 public Controller(CamerasConfigurator configurator, string server, string video, string login, string pass)
 {
     IsRealMode = false;
     _configurator = configurator;
     _login = login;
     _pass = pass;
     _commander = new WebCommander(server, video);
     Init();
 }
Beispiel #3
0
 public void Test()
 {
     var commnader = new WebCommander(_server,_video);
     var res = commnader.Login( "admin", "");
     Assert.AreNotEqual(null, res);
     var channels = commnader.GetChannels( res);
     Assert.AreNotEqual(null, channels.Channels);
     var channel =
     channels.Channels.ToArray()[0];
     var archiveEnter = commnader.ArchiveEnter( res, channel, true);
     Assert.IsTrue(archiveEnter.Result > 0);
     var archiveSeek = commnader.ArchiveSeek( res, channel, new DateTime(2011, 07, 23, 1, 0, 0));
     Assert.IsTrue(archiveSeek.Result > 0);
     var jpeg = commnader.GetJPEG( res, channel,new object(),1);
 }