Exemplo n.º 1
0
        public GraphStatistics GetSharedRoomStatisticsForPastPeriod(int roomId, PastPeriod pastPeriod, DateTime?startDate = null,
                                                                    DateTime?endDate = null)
        {
            List <DatabaseCamera> dbCameras = _databaseQueryService.GetAllCamerasInRoom(roomId);
            List <int>            cameraIds = dbCameras.Select(camera => camera.CameraId).ToList();

            return(GetSharedRoomStatisticsForPastPeriod(cameraIds, pastPeriod, startDate, endDate));
        }
Exemplo n.º 2
0
        public CameraInformationList GetAllCamerasInRoom(int roomId)
        {
            List <DatabaseCamera> dbCameras = _dbQueryService.GetAllCamerasInRoom(roomId);

            return(new CameraInformationList(dbCameras));
        }