OpenSlides/client/src/app/shared/models/users/group.ts

21 lines
469 B
TypeScript
Raw Normal View History

import { BaseModel } from '../base.model';
2018-06-30 16:56:18 +02:00
/**
* Representation of user group.
* @ignore
*/
2018-06-30 16:56:18 +02:00
export class Group extends BaseModel {
protected _collectionString: string;
2018-06-30 16:56:18 +02:00
id: number;
name: string;
permissions: string[];
2018-06-30 16:56:18 +02:00
constructor(id?: number, name?: string, permissions?: string[]) {
super();
this._collectionString = 'users/group';
2018-06-30 16:56:18 +02:00
this.id = id;
this.name = name;
this.permissions = permissions;
2018-06-30 16:56:18 +02:00
}
}