@tanislav000/bluez
Version:
Bluez5 D-Bus bindings for easy to use bluetooth access in Node.js
32 lines • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrgFreedesktopDBusIntrospectable = void 0;
const utilts_1 = require("../utilts");
/*
* Generated by dbus-next interface generator
* Template: typescript-class-auto.ts.hbs
*/
/**
* Service: org.bluez
* ObjectPath: /-/bluez/hci0/-
* Interface: org.freedesktop.DBus.Introspectable
*/
class OrgFreedesktopDBusIntrospectable {
static Connect(bus, objectPath, xml) {
return bus
.getProxyObject("org.bluez", objectPath, xml)
.then((obj) => new OrgFreedesktopDBusIntrospectable(obj));
}
constructor(dbusObject) {
this.dbusObject = dbusObject;
this.thisDBusInterface = this.dbusObject.getInterface("org.freedesktop.DBus.Introspectable");
}
/***** Methods *****/
//@method({ name: 'Introspect', inSignature: '', outSignature: 's' })
Introspect() {
return this.thisDBusInterface.Introspect().then((0, utilts_1.unwrapDbusSignature)("s"));
}
}
exports.OrgFreedesktopDBusIntrospectable = OrgFreedesktopDBusIntrospectable;
OrgFreedesktopDBusIntrospectable.DbusInterfaceName = "org.freedesktop.DBus.Introspectable";
//# sourceMappingURL=DBus-Introspectable.js.map