public HexerciseControllerService(dynamic parameters) { var inputParser = new InputParser(parameters); _mbid = inputParser.GetMbid(); _analysis = GetAcousticbrainzAnalysis(); _colourCalculator = new PredominantPropertyColourCalculator(); _trackColour = _colourCalculator.From(_analysis); }
private Analysis GetAcousticbrainzAnalysis() { var mbid = _inputParser.GetMbid(); return(new AcousticbrainzExchange().GetAnalysisOf(mbid).Deserialize()); }
private string Analysis() { var mbid = _inputParser.GetMbid(); return(new AcousticbrainzExchange().GetAnalysisOf(mbid).HighLevelJson); }