예제 #1
0
        private async void AssembleActivityDetails()
        {
            activityDetails.Text = "";
            var activityInfo = await gameSvc.GetActivityInfo();

            if (activityInfo != null && activityInfo.Data != null)
            {
                activityDetails.Text += $"Activity Name:{activityInfo.Data.Name}" + Environment.NewLine;
                activityDetails.Text += $"Enable WhiteList:{activityInfo.Data.IsEnableWhiteUser}" + Environment.NewLine;
            }

            var users = await gameSvc.GetUsersByActivitiy(50);

            if (users != null && users.Data != null)
            {
                activityDetails.Text += $"Users:{users.Data.Count}" + Environment.NewLine;
            }

            var rankUser = await gameSvc.GetRankUsersByActivity("Score", 20);

            if (rankUser != null && rankUser.Data != null)
            {
                activityDetails.Text += $"RankUsers Count:{rankUser.Data.Count}" + Environment.NewLine;
            }
            var whiteUsers = await gameSvc.GetActivityWhiteListUsers();

            if (whiteUsers != null && whiteUsers.Data != null)
            {
                activityDetails.Text += $"WhiteUsers Count:{whiteUsers.Data.Count}" + Environment.NewLine;
            }
        }