22 lines
497 B
TypeScript
22 lines
497 B
TypeScript
import { BaseModel } from '../base/base-model';
|
|
|
|
/**
|
|
* Representation of user group.
|
|
* @ignore
|
|
*/
|
|
export class Group extends BaseModel<Group> {
|
|
public static COLLECTIONSTRING = 'users/group';
|
|
|
|
public id: number;
|
|
public name: string;
|
|
public permissions: string[];
|
|
|
|
public constructor(input?: any) {
|
|
super(Group.COLLECTIONSTRING, input);
|
|
if (!input) {
|
|
// permissions are required for new groups
|
|
this.permissions = [];
|
|
}
|
|
}
|
|
}
|