ojousima.ruuvi_endpoints.ts
Version:
Experiments with RuuviTags and TS
46 lines (45 loc) • 1.99 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccelerationBroadcast = void 0;
var AccelerationBroadcast = /** @class */ (function () {
function AccelerationBroadcast(id, mac, version, p2pXG, p2pYG, p2pZG, rmsXG, rmsYG, rmsZG, devXG, devYG, devZG, batteryVoltageV, temperatureC, measurementSequence, rssiDB, dataFormat, parsedAt) {
if (id === void 0) { id = 0; }
if (mac === void 0) { mac = null; }
if (version === void 0) { version = null; }
if (p2pXG === void 0) { p2pXG = null; }
if (p2pYG === void 0) { p2pYG = null; }
if (p2pZG === void 0) { p2pZG = null; }
if (rmsXG === void 0) { rmsXG = null; }
if (rmsYG === void 0) { rmsYG = null; }
if (rmsZG === void 0) { rmsZG = null; }
if (devXG === void 0) { devXG = null; }
if (devYG === void 0) { devYG = null; }
if (devZG === void 0) { devZG = null; }
if (batteryVoltageV === void 0) { batteryVoltageV = null; }
if (temperatureC === void 0) { temperatureC = null; }
if (measurementSequence === void 0) { measurementSequence = null; }
if (rssiDB === void 0) { rssiDB = null; }
if (dataFormat === void 0) { dataFormat = null; }
if (parsedAt === void 0) { parsedAt = new Date(); }
this.id = id;
this.mac = mac;
this.version = version;
this.p2pXG = p2pXG;
this.p2pYG = p2pYG;
this.p2pZG = p2pZG;
this.rmsXG = rmsXG;
this.rmsYG = rmsYG;
this.rmsZG = rmsZG;
this.devXG = devXG;
this.devYG = devYG;
this.devZG = devZG;
this.batteryVoltageV = batteryVoltageV;
this.temperatureC = temperatureC;
this.measurementSequence = measurementSequence;
this.rssiDB = rssiDB;
this.dataFormat = dataFormat;
this.parsedAt = parsedAt;
}
return AccelerationBroadcast;
}());
exports.AccelerationBroadcast = AccelerationBroadcast;