public WrapperStatisticsVM GetAllStatistics(string userID)
        {
            WrapperStatisticsVM statsToReturn = new WrapperStatisticsVM();

            statsToReturn.Statistics = new List <StatisicsVM>();

            //Vikt kurva
            statsToReturn.Statistics.Add(GetWeightStatFull(userID));

            //Total lyft vikt!
            statsToReturn.Statistics.Add(GetTotalLiftetWeight(userID));

            //Cardio vs STR
            statsToReturn.Statistics.Add(GetCardioVsStr(userID));

            // Total km
            statsToReturn.Statistics.Add(GetTotalDistanceDone(userID));

            // Populäraste styrketräningen
            statsToReturn.Statistics.Add(GetPopularStrength(userID));

            // Populäraste cardion
            statsToReturn.Statistics.Add(GetPopularCardio(userID));

            return(statsToReturn);
        }
Beispiel #2
0
        internal WrapperStatisticsVM GetStatisticsForUser(string userID)
        {
            WrapperStatisticsVM statsForStatistics = new WrapperStatisticsVM();

            statsForStatistics = workoutcontext.GetAllStatistics(userID);

            return(statsForStatistics);
        }