76ce18cfd8
- core modules contains core services - shared module contains "dumb" components (directives, models) - used by nearly all modules - site, it's children and projector are now feature modules - full lazy loading with independent routing - routing for children (extremely helpful for plugins (later))
25 lines
614 B
TypeScript
25 lines
614 B
TypeScript
import { BaseModel } from '../base.model';
|
|
|
|
/**
|
|
* Representation of a motion block.
|
|
* @ignore
|
|
*/
|
|
export class MotionBlock extends BaseModel {
|
|
protected _collectionString: string;
|
|
id: number;
|
|
title: string;
|
|
agenda_item_id: number;
|
|
|
|
constructor(id?: number, title?: string, agenda_item_id?: number) {
|
|
super();
|
|
this._collectionString = 'motions/motion-block';
|
|
this.id = id;
|
|
this.title = title;
|
|
this.agenda_item_id = agenda_item_id;
|
|
}
|
|
|
|
getAgenda(): BaseModel | BaseModel[] {
|
|
return this.DS.get('agenda/item', this.agenda_item_id);
|
|
}
|
|
}
|