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)); }
public CameraInformationList GetAllCamerasInRoom(int roomId) { List <DatabaseCamera> dbCameras = _dbQueryService.GetAllCamerasInRoom(roomId); return(new CameraInformationList(dbCameras)); }