Ejemplo n.º 1
0
        private static void ShowSummaryData()
        {
            var token = "e2e838ab0491e56e094ae18db4b27ade1c840ab2";

            StravaMediator s = new StravaMediator(token);

            var end   = new DateTime(2013, 4, 19);
            var start = end.AddDays(-112);

            var t   = s.GetLongRuns(start, end);
            var avg = s.GetAveragePace(t);

            Console.WriteLine("TotalLongRuns = " + t.Count);
            Console.WriteLine("TotalAveragePace = " + avg);
            Console.WriteLine("TotalAveragePace = " + s.GetFormatedPace(avg));
        }
Ejemplo n.º 2
0
        private static void ShowSummaryData()
        {
            var token = "e2e838ab0491e56e094ae18db4b27ade1c840ab2";

            StravaMediator s = new StravaMediator(token);

            var end = new DateTime(2013, 4, 19);
            var start = end.AddDays(-112);

            var t = s.GetLongRuns(start, end);
            var avg = s.GetAveragePace(t);

            Console.WriteLine("TotalLongRuns = " + t.Count);
            Console.WriteLine("TotalAveragePace = " + avg);
            Console.WriteLine("TotalAveragePace = " + s.GetFormatedPace(avg));

        }