"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Permission = /** @class */ (function () {
    function Permission(name, create, read, update, del) {
        if (create === void 0) { create = false; }
        if (read === void 0) { read = true; }
        if (update === void 0) { update = false; }
        if (del === void 0) { del = false; }
        this.name = name;
        this.create = create;
        this.read = read;
        this.update = update;
        this.delete = del;
    }
    Permission.prototype.set = function (create, read, update, del) {
        this.create = create;
        this.read = read;
        this.update = update;
        this.delete = del;
    };
    Permission.prototype.get = function () {
        return [this.create, this.read, this.update, this.delete];
    };
    return Permission;
}());
exports.Permission = Permission;
//# sourceMappingURL=permission.js.map