member_webapp/@overflow/infra/service/infra.service.ts
crusader cd1e53f67a ing
2018-06-04 17:25:29 +09:00

34 lines
1004 B
TypeScript

import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import 'rxjs/add/operator/map';
import { RPCService } from '@loafer/ng-rpc';
import { Infra } from '@overflow/commons-typescript/model/infra';
// import { Page, PageParams } from 'app/commons/model';
import { Domain } from '@overflow/commons-typescript/model/domain';
import { Probe } from '@overflow/commons-typescript/model/probe';
@Injectable()
export class InfraService {
public constructor(
private rpcService: RPCService,
) {
}
// public readAllByDomain(domain: Domain, pageParams: PageParams): Observable<Page> {
// return this.rpcService.call('InfraService.readAllByDomain', domain, pageParams);
// }
// public readAllByProbe(probe: Probe, pageParams: PageParams): Observable<Page> {
// return this.rpcService.call('InfraService.readAllByProbe', probe, pageParams);
// }
public read(id: string): Observable<Infra> {
return this.rpcService.call('InfraService.read', id);
}
}