sensecap
Version:
## Install ``` npm install sensecap --save ```
21 lines (17 loc) • 561 B
JavaScript
function GroupModel(context, groupName, groupUUID) {
this.context = context;
this.groupName = groupName;
this.groupUUID = groupUUID;
}
GroupModel.prototype = {
deleteGroup: function (callback) {
this.context.deleteGroup(this.groupUUID, callback)
},
renameGroup: function (groupName, callback) {
this.context.renameGroup(groupName, this.groupUUID, callback)
},
toString: function () {
return '{groupName: ' + this.groupName + ',groupUUID: ' + this.groupUUID + '}';
}
};
module.exports = GroupModel;