searchStreams method

  1. @override
Future<HttpResult<OpenApiGetStreamsResponse>> searchStreams({
  1. String? after,
  2. String? before,
  3. int? first,
  4. String? gameId,
  5. String? language,
  6. String? userId,
  7. String? userLogin,
})
override

Implementation

@override
Future<HttpResult<OpenApiGetStreamsResponse>> searchStreams({
  String? after,
  String? before,
  int? first,
  String? gameId,
  String? language,
  String? userId,
  String? userLogin,
}) {
  return client.makeGet(
    OpenApiChannelConstants.getStreamsEndpoint,
    convertBodyFunc: (response) =>
        OpenApiGetStreamsResponse.fromHttpResponse(response),
    queryParameters: {
      OpenApiChannelConstants.queryParamAfter: after,
      OpenApiChannelConstants.queryParamBefore: before,
      OpenApiChannelConstants.queryParamFirst: first?.toString(),
      OpenApiChannelConstants.queryParamGameId: gameId,
      OpenApiChannelConstants.queryParamLanguage: language,
      OpenApiChannelConstants.queryParamUserId: userId,
      OpenApiChannelConstants.queryParamUserLogin: userLogin,
    },
    bearerToken: token,
    clientId: clientId,
  );
}