Esempio n. 1
0
        public DailyProgressSummary BuildCurrentDayProgress()
        {
            var progress = BuildDailyProgress(DateTime.Today);

            _progressRepository.SaveProgress(_localStorage.GetCurrentUserId(), new DailyProgressSummary[] { progress });

            return(progress);
        }
Esempio n. 2
0
        public void SyncPlayerData()
        {
            var userId = _localStorage.GetCurrentUserId();

            var start = GetLastSyncDate(userId).Date;
            var end   = DateTime.Today;

            var progressToSync = GetDailyProgress(start, end);

            _balanceUpdater.UpdateBalance(progressToSync);
            _progressRepository.SaveProgress(userId, progressToSync);
        }