social-media
Version:
33 lines • 858 B
JavaScript
;
var Group = (function () {
function Group(id, name) {
this.id = id;
this.name = name;
this._events = null;
}
Object.defineProperty(Group.prototype, "events", {
get: function () {
if (!this._events) {
this._events = new Array();
}
return this._events;
},
set: function (value) {
this._events = value;
},
enumerable: true,
configurable: true
});
Group.prototype.toGroupData = function () {
var newGroup = {
name: this.name,
groupId: this.id,
show: this.show,
events: new Array()
};
return newGroup;
};
return Group;
}());
exports.Group = Group;
//# sourceMappingURL=group.js.map