Ejemplo n.º 1
0
 public void IntialSetup(string athleteId, string accessToken)
 {
     DataManipulatorHandler.CreateSingleton(athleteId, accessToken);
     activityCacheHandler = new ActivityCacheHandler();
     activityCacheHandler.Init(Int64.Parse(athleteId));
     Title        = "Alerts";
     this.Seconds = 10;
 }
Ejemplo n.º 2
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));
 }
Ejemplo n.º 3
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();
        }
 private DataManipulatorHandler(string athleteId, string accessToken)
 {
     this.AccessToken     = accessToken;
     activityCacheHandler = new ActivityCacheHandler();
     activityCacheHandler.Init(Int64.Parse(athleteId));
 }