lib/client/services/network/network.service.ts (25 lines of code) (raw):

import type { Client } from "soap"; import type { ThirdPartyDataDeclaration } from "../../common/types"; import type { Network } from "./network.type"; import type { NetworkServiceOperations } from "./networkService.interface"; export class NetworkService implements NetworkServiceOperations { private _client: Client; constructor(client: Client) { this._client = client; } getAllNetworks() { return this._client.getAllNetworks(); } getCurrentNetwork(): Network { return this._client.getCurrentNetwork(); } getDefaultThirdPartyDataDeclaration(): ThirdPartyDataDeclaration { return this._client.getDefaultThirdPartyDataDeclaration(); } makeTestNetwork(): Network { return this._client.makeTestNetwork(); } updateNetwork(network: Network): Network { return this._client.updateNetwork(network); } }