Skip to content

Commit

Permalink
fixup! refactor(core): use private variables instead of function wrap…
Browse files Browse the repository at this point in the history
…pers
  • Loading branch information
JKRhb committed Oct 9, 2023
1 parent ff5ffe5 commit fcc3b70
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/core/src/consumed-thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,26 @@ export default class ConsumedThing extends TD.Thing implements IConsumedThing {
[key: string]: EventElement;
};

/**
* The servient associated with this {@link ConsumedThing}.
*
* Provides protocol-specific clients as well as credentials for the
* available security schemes.
*
* The declaration as private (via the leading `#`) prevents this
* field from being included in the TD generated by the
* {@link getThingDescription} method.
*/
#servient: Servient;

/**
* Mapping of URI schemes to {@link ProtocolClient}s that are used for
* performing protocol-specific interactions.
*
* The declaration as private (via the leading `#`) prevents this
* field from being included in the TD generated by the
* {@link getThingDescription} method.
*/
#clients: Map<string, ProtocolClient>;

private subscribedEvents: Map<string, Subscription> = new Map<string, Subscription>();
Expand Down

0 comments on commit fcc3b70

Please sign in to comment.