diff options
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r-- | client/src/app/shared/video/video.service.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/client/src/app/shared/video/video.service.ts b/client/src/app/shared/video/video.service.ts index 7cc98c77a..5c0674e58 100644 --- a/client/src/app/shared/video/video.service.ts +++ b/client/src/app/shared/video/video.service.ts | |||
@@ -23,8 +23,17 @@ import { ServerService } from '@app/core' | |||
23 | import { UserSubscriptionService } from '@app/shared/user-subscription' | 23 | import { UserSubscriptionService } from '@app/shared/user-subscription' |
24 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | 24 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' |
25 | 25 | ||
26 | export interface VideosProvider { | ||
27 | getVideos ( | ||
28 | videoPagination: ComponentPagination, | ||
29 | sort: VideoSortField, | ||
30 | filter?: VideoFilter, | ||
31 | categoryOneOf?: number | ||
32 | ): Observable<{ videos: Video[], totalVideos: number }> | ||
33 | } | ||
34 | |||
26 | @Injectable() | 35 | @Injectable() |
27 | export class VideoService { | 36 | export class VideoService implements VideosProvider { |
28 | static BASE_VIDEO_URL = environment.apiUrl + '/api/v1/videos/' | 37 | static BASE_VIDEO_URL = environment.apiUrl + '/api/v1/videos/' |
29 | static BASE_FEEDS_URL = environment.apiUrl + '/feeds/videos.' | 38 | static BASE_FEEDS_URL = environment.apiUrl + '/feeds/videos.' |
30 | 39 | ||