Exemplo n.º 1
0
        public void Analyse(IOutputType outputType)
        {
            var trackId      = _interaction.GetTrackId();
            var trackResults = ParseApi.GetResultsFor(trackId);

            outputType.Print(trackResults);
        }
Exemplo n.º 2
0
        public void Analyse(IOutputType outputType)
        {
            int maxTrackId = int.Parse(ConfigurationManager.AppSettings["NumTracks"]);

            for (int trackId = 0; trackId < maxTrackId; trackId++)
            {
                var results = ParseApi.GetResultsFor(trackId);
                outputType.Print(results);
                _ui.WaitForInteraction();
            }
        }
Exemplo n.º 3
0
        public void Analyse(IOutputType outputType)
        {
            int maxTrackId = int.Parse(ConfigurationManager.AppSettings["NumTracks"]);
            var allData    = new List <TrackData>();
            var loadingBar = new LoadingBar("Fetching Data", maxTrackId);

            loadingBar.Start();
            for (int trackId = 0; trackId < maxTrackId; trackId++)
            {
                allData.Add(ParseApi.GetResultsFor(trackId));
                loadingBar.Next();
            }
            outputType.Print(allData);
        }