/// <summary> /// /// </summary> /// <returns></returns> public Tuple <int, int> CalculateShittyCity() { // Get Tweets var cityAWords = ConvertTwitterStatusesToStringArray(GetRecentTweetsFromQuery(CityA)); var cityBWords = ConvertTwitterStatusesToStringArray(GetRecentTweetsFromQuery(CityB)); // Analyse tweets from city A & B decimal cityAWordAnalysis; decimal cityBWordAnalysis; try { cityAWordAnalysis = _sentimentAnalyser.Analyse(cityAWords); } catch { cityAWordAnalysis = 0; } try { cityBWordAnalysis = _sentimentAnalyser.Analyse(cityBWords); } catch { cityBWordAnalysis = 0; } // Returns a Turple of data return(new Tuple <int, int>((int)cityAWordAnalysis, (int)cityBWordAnalysis)); }