Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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);
                }
            }
        }