@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
15 lines (13 loc) • 616 B
JavaScript
import { RpcOutboundClient } from '../rpc-outbound-client';
import { RpcElectronResponseKey } from './rpc-electron-model';
export class RpcElectronResponseClient {
static electronResponse(rpc, data, outbound) {
if (outbound) {
return RpcOutboundClient.callOutbound(rpc.rpcManager.rpcChannel, outbound, RpcElectronResponseKey.command, RpcElectronResponseKey.version, data);
}
else {
return RpcOutboundClient.call(rpc, RpcElectronResponseKey.command, RpcElectronResponseKey.version, data);
}
}
}
//# sourceMappingURL=rpc-electron-response-client.js.map