Exemple #1
0
        public static async Task <RestTeam> GetTeamAsync(BaseRestClient client, string name)
        {
            var token = TokenHelper.GetSingleToken(client);
            var model = await client.RestClient.GetTeamInternalAsync(token, name);

            return(RestTeam.Create(client, model));
        }
Exemple #2
0
        public static async Task <RestTeam> GetTeamAsync(BaseTwitchClient client, string name, RequestOptions options = null)
        {
            var model = await client.ApiClient.GetTeamAsync(name, options).ConfigureAwait(false);

            if (model != null)
            {
                return(RestTeam.Create(client, model));
            }
            return(null);
        }