Esempio n. 1
0
 /// <summary>
 /// Searches for messages and files matching a query.
 /// <see href="https://api.slack.com/methods/search.all" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sortDir'>
 /// Change sort direction to ascending (`asc`) or descending (`desc`).
 /// </param>
 /// <param name='query'>
 /// Search query. May contains booleans, etc.
 /// </param>
 /// <param name='sort'>
 /// Return matches sorted by either `score` or `timestamp`.
 /// </param>
 /// <param name='count'>
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `search:read`
 /// </param>
 /// <param name='highlight'>
 /// Pass a value of `true` to enable query highlight markers (see below).
 /// </param>
 /// <param name='page'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AllOKResponse> AllAsync(this ISearch operations, string sortDir = default(string), string query = default(string), string sort = default(string), string count = default(string), string token = default(string), bool?highlight = default(bool?), string page = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AllWithHttpMessagesAsync(sortDir, query, sort, count, token, highlight, page, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }