list method

Future<CommentThreadListResponse> list({
  1. String part = 'id,replies,snippet',
  2. List<String> partList = const [],
  3. String? allThreadsRelatedToChannelId,
  4. String? channelId,
  5. String? id,
  6. String? videoId,
  7. int? maxResults,
  8. String? moderationStatus,
  9. String? order,
  10. String? pageToken,
  11. String? searchTerms,
  12. String? textFormat,
})

Returns a list of comment threads that match the API request parameters.

Implementation

Future<CommentThreadListResponse> list(
    {String part = 'id,replies,snippet',
    List<String> partList = const [],
    String? allThreadsRelatedToChannelId,
    String? channelId,
    String? id,
    String? videoId,
    int? maxResults,
    String? moderationStatus,
    String? order,
    String? pageToken,
    String? searchTerms,
    String? textFormat}) async {
  return _rest.list(
    apiKey,
    accept,
    buildParts(partList, part),
    allThreadsRelatedToChannelId: allThreadsRelatedToChannelId,
    channelId: channelId,
    id: id,
    videoId: videoId,
    maxResults: maxResults,
    moderationStatus: moderationStatus,
    order: order,
    pageToken: pageToken,
    searchTerms: searchTerms,
    textFormat: textFormat,
  );
}