5d8a505f
Yarik
RoadService
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { StatementBaseService } from './statement.base.service';
import { RoadService } from '../models/road-service';
@Injectable()
export class RoadServiceService extends StatementBaseService {
protected url: string = 'http://localhost:5000/roadservice';
constructor(protected http: Http) {
super(http);
}
public createModel(): Object {
return new RoadService();
}
protected parseModels(json: any): any[] {
return json.roadServiceEditDsM as RoadService[];
};
protected parseModel(json: any): any {
return json as RoadService;
};
}
|