Beispiel #1
0
 /// <summary>
 /// Lists all channels in a Slack team.
 /// <see href="https://api.slack.com/methods/channels.list" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='excludeMembers'>
 /// Exclude the `members` collection from each `channel`
 /// </param>
 /// <param name='cursor'>
 /// Paginate through collections of data by setting the `cursor` parameter to a
 /// `next_cursor` attribute returned by a previous request's
 /// `response_metadata`. Default value fetches the first "page" of the
 /// collection. See [pagination](/docs/pagination) for more detail.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `channels:read`
 /// </param>
 /// <param name='limit'>
 /// The maximum number of items to return. Fewer than the requested number of
 /// items may be returned, even if the end of the users list hasn't been
 /// reached.
 /// </param>
 /// <param name='excludeArchived'>
 /// Exclude archived channels from the list
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ListOKResponseModelModel> ListAsync(this IChannels operations, bool?excludeMembers = default(bool?), string cursor = default(string), string token = default(string), int?limit = default(int?), bool?excludeArchived = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(excludeMembers, cursor, token, limit, excludeArchived, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }