MCPcopy Index your code
hub / github.com/WebThingsIO/webthing-node / getProperties

Method getProperties

lib/thing.ts:359–366  ·  view source on GitHub ↗

* Get a mapping of all properties and their values. * * Returns an object of propertyName -> value.

()

Source from the content-addressed store, hash-verified

357 * Returns an object of propertyName -> value.
358 */
359 getProperties(): { [propertyName: string]: any } {
360 const props: { [propertyName: string]: any } = {};
361 for (const name in this.properties) {
362 props[name] = this.properties[name].getValue();
363 }
364
365 return props;
366 }
367
368 /**
369 * Determine whether or not this thing has a given property.

Callers 1

getMethod · 0.80

Calls 1

getValueMethod · 0.80

Tested by

no test coverage detected