public HexerciseControllerService(dynamic parameters)
        {
            var inputParser = new InputParser(parameters);

            _mbid             = inputParser.GetMbid();
            _analysis         = GetAcousticbrainzAnalysis();
            _colourCalculator = new PredominantPropertyColourCalculator();
            _trackColour      = _colourCalculator.From(_analysis);
        }
Exemple #2
0
        private Analysis GetAcousticbrainzAnalysis()
        {
            var mbid = _inputParser.GetMbid();

            return(new AcousticbrainzExchange().GetAnalysisOf(mbid).Deserialize());
        }
Exemple #3
0
        private string Analysis()
        {
            var mbid = _inputParser.GetMbid();

            return(new AcousticbrainzExchange().GetAnalysisOf(mbid).HighLevelJson);
        }