import { RpcInterface , RpcManager } from "@itwin/core-common" ; import * as http from "http" ; import * as https from "https" ; /** Display Test App RPC interface. */ export class DtaRpcInterface extends RpcInterface { /** The immutable name of the interface. */ public static readonly interfaceName = "SVTRpcInterface" ; /** The version of the interface. */ public static interfaceVersion = "1.0.0" ; /** The types that can be marshaled by the interface. */ public static types = ( ) => [ ] ; /** The backend server, when running on a browser */ public static backendServer : http . Server | https . Server | undefined ; public static getClient ( ) { return RpcManager . getClientForInterface ( DtaRpcInterface ) ; } public async readExternalSavedViews ( _filename ) { return this . forward ( arguments ) ; } public async writeExternalSavedViews ( _filename , _namedViews ) { return this . forward ( arguments ) ; } public async readExternalFile ( _filename ) { return this . forward ( arguments ) ; } public async writeExternalFile ( _filename , _content ) { return this . forward ( arguments ) ; } public async terminate ( ) { return this . forward ( arguments ) ; } }