2018-07-23 16:42:17 +02:00
|
|
|
import { BaseModel } from '../base.model';
|
2018-06-30 16:56:18 +02:00
|
|
|
|
2018-07-12 14:11:31 +02:00
|
|
|
/**
|
|
|
|
* Representation of user group.
|
|
|
|
* @ignore
|
|
|
|
*/
|
2018-06-30 16:56:18 +02:00
|
|
|
export class Group extends BaseModel {
|
2018-07-12 14:11:31 +02:00
|
|
|
protected _collectionString: string;
|
2018-06-30 16:56:18 +02:00
|
|
|
id: number;
|
|
|
|
name: string;
|
2018-07-12 14:11:31 +02:00
|
|
|
permissions: string[];
|
2018-06-30 16:56:18 +02:00
|
|
|
|
2018-07-12 14:11:31 +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;
|
2018-07-03 11:52:16 +02:00
|
|
|
this.name = name;
|
|
|
|
this.permissions = permissions;
|
2018-06-30 16:56:18 +02:00
|
|
|
}
|
|
|
|
}
|