예제 #1
0
        //[Test]
        public void TestRead()
        {
            var camModel = new CameraModel() {IpAddress = source};
            var camProvider = new DlinkIpCameraProvider(camModel);

            var bytearry = camProvider.Read();
            
        }
        public void ReadContent()
        {
            var executiongDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var dir = Path.Combine(executiongDir, "Resources");

            var camModel = new CameraModel() {SavePath = dir};
            var hikProvider = new HikVisionCameraProvider(camModel);
            var bytes = hikProvider.Read();

            Assert.True(bytes.Length > 4000);
        }
예제 #3
0
 public MockCameraProvider(CameraModel cameraModel, byte[] readByteAry)
 {
     this.CameraModel = cameraModel;
     this._readArrayContent = readByteAry;
 }
 public HikVisionCameraProvider(CameraModel cameraModel)
 {
     this.CameraModel = cameraModel;
 }
 public DlinkIpCameraProvider(CameraModel cameraModel)
 {
     this.CameraModel = cameraModel;
 }
예제 #6
0
 public GateCameraSetupItem(CameraModel cameraModel)
     : base(cameraModel.Name)
 {
     this.CameraModel = cameraModel;
 }
		// Remove CameraModel from the collection
		public void Remove(CameraModel CameraModel)
		{
			InnerList.Remove(CameraModel);
		}
		// Add new CameraModel to the collection
		public void Add(CameraModel CameraModel)
		{
			InnerList.Add(CameraModel);
		}