@shuangbing/bmw-connected-drive
Version:
This package can be used to access the BMW ConnectedDrive services.
18 lines • 814 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceStatus = void 0;
const DetailedServiceStatus_1 = require("./DetailedServiceStatus");
class ServiceStatus {
constructor(response) {
this.eventId = response.event.eventId;
this.serviceType = response.event.rsType;
this.vin = response.event.vin;
this.creationTime = new Date(response.event.creationTime);
this.lastUpdated = new Date(response.event.lastUpdated);
this.status = response.event.rsEventStatus;
this.requestParams = response.event.requestParams;
this.actions = response.event.actions.map(action => new DetailedServiceStatus_1.DetailedServiceStatus(action));
}
}
exports.ServiceStatus = ServiceStatus;
//# sourceMappingURL=ServiceStatus.js.map