member_webapp/@overflow/infra/service/infra.service.ts

34 lines
1004 B
TypeScript
Raw Normal View History

2018-04-06 11:02:18 +00:00
import { Injectable } from '@angular/core';
2018-06-04 08:25:29 +00:00
import { Observable } from 'rxjs';
2018-04-06 11:02:18 +00:00
import 'rxjs/add/operator/map';
2018-05-24 06:44:13 +00:00
import { RPCService } from '@loafer/ng-rpc';
2018-04-06 11:02:18 +00:00
2018-05-02 08:09:39 +00:00
import { Infra } from '@overflow/commons-typescript/model/infra';
2018-05-24 06:44:13 +00:00
// import { Page, PageParams } from 'app/commons/model';
2018-05-02 08:09:39 +00:00
import { Domain } from '@overflow/commons-typescript/model/domain';
import { Probe } from '@overflow/commons-typescript/model/probe';
2018-04-06 11:02:18 +00:00
@Injectable()
export class InfraService {
public constructor(
private rpcService: RPCService,
) {
}
2018-05-24 06:44:13 +00:00
// public readAllByDomain(domain: Domain, pageParams: PageParams): Observable<Page> {
// return this.rpcService.call('InfraService.readAllByDomain', domain, pageParams);
// }
2018-04-06 11:02:18 +00:00
2018-05-24 06:44:13 +00:00
// public readAllByProbe(probe: Probe, pageParams: PageParams): Observable<Page> {
// return this.rpcService.call('InfraService.readAllByProbe', probe, pageParams);
// }
2018-04-19 10:26:39 +00:00
public read(id: string): Observable<Infra> {
return this.rpcService.call('InfraService.read', id);
}
2018-04-06 11:02:18 +00:00
}