import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { Search } from '../../shared'; import { SortField } from './sort-field.type'; import { AuthHttp, AuthService, RestExtractor, RestPagination, RestService, ResultList } from '../../shared'; import { Video } from './video.model'; @Injectable() export class VideoService { private static BASE_VIDEO_URL = '/api/v1/videos/'; constructor( private authService: AuthService, private authHttp: AuthHttp, private http: Http, private restExtractor: RestExtractor, private restService: RestService ) {} getVideo(id: string): Observable