Пример #1
0
        public static async Task <RestGameSummary> GetGameSummaryAsync(BaseTwitchClient client, string game, RequestOptions options = null)
        {
            var model = await client.ApiClient.GetStreamSummaryAsync(game, options).ConfigureAwait(false);

            if (model != null)
            {
                return(RestGameSummary.Create(model));
            }
            return(null);
        }
Пример #2
0
        internal static async Task <RestGameSummary> GetGameSummaryAsync(BaseRestClient client, string game)
        {
            var token = TokenHelper.GetSingleToken(client);
            var model = await client.RestClient.GetGameSummaryInternalAsync(token, game);

            if (model == null)
            {
                return(null);
            }

            return(RestGameSummary.Create(model));
        }