Beispiel #1
0
 public void InitliseServiceAndCache(string athleteId, string stravaId, string accessToken)
 {
     activitySummaryServiceHandler = new ActivitySummaryServiceHandler();
     activitySummaryCacheHandler   = new ActivitySummaryCacheHandler();
     activityServiceHandler        = new ActivityServiceHandler();
     activityCacheHandler          = new ActivityCacheHandler();
     activitySummaryServiceHandler.Init(athleteId, stravaId, accessToken);
     activityServiceHandler.Init(athleteId, stravaId, accessToken);
     activityCacheHandler.Init(Int64.Parse(athleteId));
 }
Beispiel #2
0
        public LeaderboardList(string athleteId, string stravaId, string accessToken, string menuSelection)
        {
            InitializeComponent();
            Title = "Leaderboard";
            Items = new ObservableCollection <Activity> {
            };
            DataManipulatorHandler.CreateSingleton(athleteId, accessToken);

            activitySummaryCacheHandler = new ActivitySummaryCacheHandler();
            activityCacheHandler        = new ActivityCacheHandler();

            this.Seconds       = 10;
            this.MenuSelection = menuSelection;
            this.AccessToken   = accessToken;
            LoadScreen();
        }