| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.SubscriptionLoggable = void 0; |
| 4 |
var SubscriptionLog_1 = require("./SubscriptionLog"); |
| 5 |
var SubscriptionLoggable = (function () { |
| 6 |
function SubscriptionLoggable() { |
| 7 |
this.subscriptions = []; |
| 8 |
} |
| 9 |
SubscriptionLoggable.prototype.logSubscribedFrame = function () { |
| 10 |
this.subscriptions.push(new SubscriptionLog_1.SubscriptionLog(this.scheduler.now())); |
| 11 |
return this.subscriptions.length - 1; |
| 12 |
}; |
| 13 |
SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) { |
| 14 |
var subscriptionLogs = this.subscriptions; |
| 15 |
var oldSubscriptionLog = subscriptionLogs[index]; |
| 16 |
subscriptionLogs[index] = new SubscriptionLog_1.SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now()); |
| 17 |
}; |
| 18 |
return SubscriptionLoggable; |
| 19 |
}()); |
| 20 |
exports.SubscriptionLoggable = SubscriptionLoggable; |
| 21 |
//# sourceMappingURL=SubscriptionLoggable.js.map |