fitbit-livedata
Version:
This project aims to getting `livedata` from Fitbit tracker
20 lines (19 loc) • 914 B
JavaScript
;Object.defineProperty(exports, "__esModule", { value: true });function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}var TrackerAuthCredentials =
function TrackerAuthCredentials(str, str2) {var _this = this;_classCallCheck(this, TrackerAuthCredentials);
this.f21170d = str;
this.f21171e = str2.toString();
if (this.f21170d && this.f21171e) {
var arrayList = [];
var cArr = ['0', '0'];
for (var i2 = 0; i2 < this.f21170d.length / 2; i2 += 1) {
cArr[0] = this.f21170d[i2 * 2];
cArr[1] = this.f21170d[i2 * 2 + 1];
arrayList.push(parseInt('0x' + cArr[0] + cArr[1], 10));
}
this.f21168b = [];
arrayList.forEach(function (byte) {
_this.f21168b.push(byte);
});
this.f21169c = parseInt(this.f21171e, 10);
}
};exports.default = TrackerAuthCredentials;