public bool UpdateNaming(GameHandlerMetadata info) { // TODO: better logic so repositories can agree on game name if (GameNames.ContainsKey(info.GameID)) { return false; } GameNames.Add(info.GameID, info.GameTitle); return true; }
public async void GetAllGames() { AmostiService amostiService = new AmostiService(); GameNames.Clear(); var gameResults = await amostiService.GetGames(); foreach (var item in gameResults) { if (item.GameName != null && item.GameName != "null") { GameNames.Add(item); } } }