/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='model'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <TweetsResponseModel> > GetTweetsAsync(this IInspireStream operations, TweetsSearchModel model = default(TweetsSearchModel), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetTweetsWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='model'> /// </param> public static IList <TweetsResponseModel> GetTweets(this IInspireStream operations, TweetsSearchModel model = default(TweetsSearchModel)) { return(operations.GetTweetsAsync(model).GetAwaiter().GetResult()); }