searchStreams method
Future<HttpResult<OpenApiGetStreamsResponse> >
searchStreams({
- String? after,
- String? before,
- int? first,
- String? gameId,
- String? language,
- String? userId,
- 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,
);
}