Exemple #1
0
            public async void SetSteamId(string steamId)
            {
                if (steamId == null)
                {
                    return;
                }

                _cancellationTokenSource?.Cancel();

                var existing = SteamProfiles.FirstOrDefault(x => x.SteamId == steamId);

                if (existing != null)
                {
                    SteamProfile = existing;
                    return;
                }

                var profile = new SteamProfile(steamId);

                SteamProfiles.Add(profile);
                SteamProfile = profile;

                profile.ProfileName = await SteamIdHelper.GetSteamName(steamId);
            }
 private async void UpdateSteamId()
 {
     SteamId          = SteamIdHelper.Instance.Value;
     SteamProfileName = await SteamIdHelper.GetSteamName(SteamId);
 }