UNPKG

c8osdkjscore

Version:
30 lines 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var C8oLocalCacheResponse = (function () { function C8oLocalCacheResponse(response, responseType, expirationDate) { this.response = response; this.responseType = responseType; this.expirationDate = expirationDate; } C8oLocalCacheResponse.prototype.isExpired = function () { if (this.expirationDate <= 0) { return false; } else { var currentDate = new Date().getTime(); return this.expirationDate < currentDate; } }; C8oLocalCacheResponse.prototype.getResponse = function () { return this.response; }; C8oLocalCacheResponse.prototype.getResponseType = function () { return this.responseType; }; C8oLocalCacheResponse.prototype.getExpirationDate = function () { return this.expirationDate; }; return C8oLocalCacheResponse; }()); exports.C8oLocalCacheResponse = C8oLocalCacheResponse; //# sourceMappingURL=c8oLocalCacheResponse.js.map