+
+ searchVideoChannels (
+ search: string,
+ componentPagination: ComponentPagination
+ ): Observable<{ data: VideoChannel[], total: number }> {
+ const url = SearchService.BASE_SEARCH_URL + 'video-channels'
+
+ const pagination = this.restService.componentPaginationToRestPagination(componentPagination)
+
+ let params = new HttpParams()
+ params = this.restService.addRestGetParams(params, pagination)
+ params = params.append('search', search)
+
+ return this.authHttp
+ .get<ResultList<VideoChannelServerModel>>(url, { params })
+ .pipe(
+ map(res => VideoChannelService.extractVideoChannels(res)),
+ catchError(err => this.restExtractor.handleError(err))
+ )
+ }