in src/cl/digital_twin_client.ts [92:106]
constructor(creds: IoTHubTokenCredentials) {
/*Code_SRS_NODE_DIGITAL_TWIN_CLIENT_12_001: [** The `DigitalTwinClient` creates an instance of the DigitalTwinClient passing IoTHubTokenCredentials class as an argument.]*/
this._creds = creds;
this._pl = new PLClient(this._creds, {
baseUri: 'https://' + this._creds.getHubName(),
apiVersion: this._apiVersion,
deserializationContentTypes: { // application/ld+json isn't supported by autorest by default, which is why we need these options
json: [
'application/ld+json',
'application/json',
'text/json'
]
}
});
}