Пример #1
0
        private static async void SetUserChampionData(GameUser user, GameType gameType)
        {
            user.championData = await Apis.GetUserChampionData(user, gameType);

            ShowInformationViewModel.viewModelObject.UserChanged();
            while (user.championData.isUpdated == "false")
            {
                user.championData = await Apis.GetUserChampionDataToUpdate(user, gameType);

                ShowInformationViewModel.viewModelObject.UserChanged();
            }
            return;
        }
Пример #2
0
        private static async Task <GameUser> CreateUserAsync(string userName)
        {
            GameUser AddUser = new GameUser();

            if (userName == null)
            {
                AddUser.data = new GameUserData()
                {
                    accountID = string.Empty,
                    userName  = "******",
                };
                return(AddUser);
            }

            AddUser.data = await Apis.GetUserData(userName);

            return(AddUser);
        }