Ejemplo n.º 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);
            }
Ejemplo n.º 2
0
 private async void UpdateSteamId()
 {
     SteamId          = SteamIdHelper.Instance.Value;
     SteamProfileName = await SteamIdHelper.GetSteamName(SteamId);
 }