searchChannels method

  1. @override
Future<HttpResult<OpenApiSearchChannelsResponse>> searchChannels({
  1. required String query,
  2. int? first,
  3. String? after,
  4. bool? isLive,
})
override

Implementation

@override
Future<HttpResult<OpenApiSearchChannelsResponse>> searchChannels({
  required String query,
  int? first,
  String? after,
  bool? isLive,
}) {
  return client.makeGet(
    OpenApiChannelConstants.searchChannelsEndpoint,
    convertBodyFunc: (response) =>
        OpenApiSearchChannelsResponse.fromHttpResponse(response),
    queryParameters: {
      OpenApiChannelConstants.queryParamQuery: query,
      OpenApiChannelConstants.queryParamFirst: first?.toString(),
      OpenApiChannelConstants.queryParamAfter: after,
      OpenApiChannelConstants.queryParamIsLive: isLive?.toString(),
    },
    bearerToken: token,
    clientId: clientId,
  );
}