예제 #1
0
        public async Task GetKnownGames(string nameFilter)
        {
            var knownGames = await sut.GetKnownGames(new KnownGamesPagedQuery()
            {
                GameName = nameFilter
            });

            Assert.NotEmpty(knownGames);
            Assert.NotNull(knownGames[0].name);
        }
예제 #2
0
        public async Task <List <KnownGame> > GetKnownGameNames(string filterGameName)
        {
            var games = await beamProClient.GetKnownGames(new KnownGamesPagedQuery()
            {
                GameName = filterGameName
            });

            return(games.ConvertAll(input => new KnownGame()
            {
                GameName = input.name,
                TotalViewers = input.viewersCurrent,
                ThumbnailUrls = new ThumbnailUrls()
                {
                    Large = input.coverUrl,
                    Medium = input.coverUrl,
                    Small = input.coverUrl
                }
            }));
        }