async Task RefreshProfile() { await SL.Manager.GetProfileAsync(); AreaCollection.ReloadData(); UpdateNavBar(); }
public override void RefreshLocally() { base.RefreshLocally(); didRefreshProfile = true; didRefreshChallenges = true; didRefreshRewards = true; didRefreshTransactions = true; if (SL.HasProfile) { lblScoreValue.Text = SL.Profile.Score.ToString(); lblChallengesValue.Text = SL.Profile.ChallengeCompCount + " of " + SL.Profile.ChallengeCount; lblRewarsValue.Text = SL.Profile.RewardLabel + " of " + SL.Profile.RewardCount; } UpdateNavBar(); TableView.ReloadData(); Platform.AnimateRotationComplete(ivScoreImage); ivScoreImage.Image = UIImage.FromBundle("IconScoreTransactions"); lblScoreValue.Hidden = false; AreaCollection.ReloadData(); }
public override void RefreshLocally() { base.RefreshLocally(); int?friendsCount = SL.Profile?.FriendPreviewList?.Count; if (friendsCount != null) { var maxScore = friendsCount > 0 ? SL.Profile.FriendPreviewList[0].Score : 0; _leaderBoardTableSource.MaxScoreValue = maxScore.HasValue == true ? (float)(maxScore.Value) : 0; _leaderBoardTableSource.CountItemsToDisplay = GetCountOfItems(); tvLeaderboardFilterTable.ReloadData(); } EmptyView.Hidden = friendsCount != null && friendsCount > 0; string rank = CountSuffixGenerator.GenerateSuffixedStringFromString(SL.Profile.FriendRank); lblProfileLeaderboardPosition.Text = String.Format("Ranked {0} among friends", rank); UpdateNavBar(); //AreaCollection.ReloadData(); Platform.AnimateRotationComplete(ProfileImage); ImageService.Instance.LoadUrl(SL.Profile?.ProfilePictureURL).Into(ProfileImage); AreaCollection.ReloadData(); }
void RefreshComplete() { if (DidRefreshAll) { Platform.AnimateRotationComplete(ProfileImage); ImageService.Instance.LoadUrl(SL.Profile?.ProfilePictureURL).Into(ProfileImage); AreaCollection.ReloadData(); } }
/* * void RefreshRewards() * { * didRefreshRewards = false; * SL.Manager.GetRewardsAsync(RefreshRewardsComplete); * } * * void RefreshRewardsComplete(RewardResponseModel response) * { * didRefreshRewards = true; * RefreshComplete(); * } */ void RefreshComplete() { if (DidRefreshAll) { Platform.AnimateRotationComplete(ScoreImage); ScoreImage.Image = UIImage.FromBundle("IconScoreTransactions"); Score.Text = SL.Profile.Score.ToString(); Score.Hidden = false; AreaCollection.ReloadData(); } }
void RefreshComplete() { ; if (DidRefreshAll) { Platform.AnimateRotationComplete(ivScoreImage); ivScoreImage.Image = UIImage.FromBundle("IconScoreTransactions"); lblScoreValue.Hidden = false; AreaCollection.ReloadData(); } }