Пример #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 mixerClient.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
                }
            }));
        }