Exemplo n.º 1
0
 /// <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 IInspireStreamAPI operations, TweetsSearchModel model = default(TweetsSearchModel), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetTweetsWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <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 <int?> CreateTweetAccountAsync(this IInspireStreamAPI operations, TwitterAppAccountRquestModel model = default(TwitterAppAccountRquestModel), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateTweetAccountWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> IsAliveAsync(this IInspireStreamAPI operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.IsAliveWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 public static IList <TweetsResponseModel> GetTweets(this IInspireStreamAPI operations, TweetsSearchModel model = default(TweetsSearchModel))
 {
     return(operations.GetTweetsAsync(model).GetAwaiter().GetResult());
 }
Exemplo n.º 5
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 public static int?CreateTweetAccount(this IInspireStreamAPI operations, TwitterAppAccountRquestModel model = default(TwitterAppAccountRquestModel))
 {
     return(operations.CreateTweetAccountAsync(model).GetAwaiter().GetResult());
 }
Exemplo n.º 6
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static object IsAlive(this IInspireStreamAPI operations)
 {
     return(operations.IsAliveAsync().GetAwaiter().GetResult());
 }