profile-plus
Version:
67 lines • 3.43 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserAccount = void 0;
const package_js_1 = require("../package.js");
const UserAccount_1 = require("lincd-sioc/shapes/UserAccount");
const profile_plus_js_1 = require("../ontologies/profile-plus.js");
const ShapeDecorators_1 = require("lincd/utils/ShapeDecorators");
const Boolean_1 = require("lincd-xsd/shapes/Boolean");
let UserAccount = class UserAccount extends UserAccount_1.UserAccount {
get profileSetupComplete() {
return Boolean_1.Boolean.isTrue(this.getOne(profile_plus_js_1.profilePlus.profileSetupComplete));
}
set profileSetupComplete(val) {
this.overwrite(profile_plus_js_1.profilePlus.profileSetupComplete, val ? Boolean_1.Boolean.true() : Boolean_1.Boolean.false());
}
get enabledLocationServices() {
return Boolean_1.Boolean.isTrue(this.getOne(profile_plus_js_1.profilePlus.enabledLocationServices));
}
set enabledLocationServices(val) {
this.overwrite(profile_plus_js_1.profilePlus.enabledLocationServices, val ? Boolean_1.Boolean.true() : Boolean_1.Boolean.false());
}
get enabledNotifications() {
return Boolean_1.Boolean.isTrue(this.getOne(profile_plus_js_1.profilePlus.enabledNotifications));
}
set enabledNotifications(val) {
this.overwrite(profile_plus_js_1.profilePlus.enabledNotifications, val ? Boolean_1.Boolean.true() : Boolean_1.Boolean.false());
}
};
exports.UserAccount = UserAccount;
UserAccount.targetClass = profile_plus_js_1.profilePlus.UserAccount;
__decorate([
(0, ShapeDecorators_1.literalProperty)({
path: profile_plus_js_1.profilePlus.profileSetupComplete,
dataType: Boolean_1.Boolean.targetClass,
}),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [Boolean])
], UserAccount.prototype, "profileSetupComplete", null);
__decorate([
(0, ShapeDecorators_1.literalProperty)({
path: profile_plus_js_1.profilePlus.enabledLocationServices,
dataType: Boolean_1.Boolean.targetClass,
}),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [Boolean])
], UserAccount.prototype, "enabledLocationServices", null);
__decorate([
(0, ShapeDecorators_1.literalProperty)({
path: profile_plus_js_1.profilePlus.enabledNotifications,
dataType: Boolean_1.Boolean.targetClass,
}),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [Boolean])
], UserAccount.prototype, "enabledNotifications", null);
exports.UserAccount = UserAccount = __decorate([
package_js_1.linkedShape
], UserAccount);
//# sourceMappingURL=UserAccount.js.map