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

34 lines
970 B
TypeScript

import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import 'rxjs/add/operator/map';
import { RPCService } from '@loafer/ng-rpc';
import { Domain } from '@overflow/commons-typescript/model/domain';
import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth';
@Injectable()
export class NoAuthProbeService {
public constructor(
private rpcService: RPCService,
) {
}
public readAllByDomainID(domainID: number): Observable<NoAuthProbe[]> {
return this.rpcService.call<NoAuthProbe[]>('NoAuthProbeService.readAllByDomainID', domainID);
}
public acceptNoAuthProbe(noAuthProbeID: number): Observable<NoAuthProbe[]> {
return this.rpcService.call<NoAuthProbe[]>('NoAuthProbeService.acceptNoAuthProbe', noAuthProbeID);
}
public denyNoauthProbe(noAuthProbeID: number): Observable<NoAuthProbe[]> {
return this.rpcService.call<NoAuthProbe[]>('NoAuthProbeService.denyNoauthProbe', noAuthProbeID);
}
}