2018-07-23 16:42:17 +02:00
|
|
|
import { BaseModel } from '../base.model';
|
2018-07-04 17:51:31 +02:00
|
|
|
|
2018-07-12 14:11:31 +02:00
|
|
|
/**
|
|
|
|
* Representation of Motion.
|
|
|
|
*
|
|
|
|
* Untouched for now because of heavy maintainance on server side
|
|
|
|
*
|
|
|
|
* @ignore
|
|
|
|
*/
|
2018-07-04 17:51:31 +02:00
|
|
|
export class Motion extends BaseModel {
|
2018-07-12 14:11:31 +02:00
|
|
|
protected _collectionString: string;
|
2018-07-04 17:51:31 +02:00
|
|
|
id: number;
|
2018-07-12 14:11:31 +02:00
|
|
|
identifier: string;
|
|
|
|
versions: Object[];
|
2018-07-04 17:51:31 +02:00
|
|
|
active_version: number;
|
2018-07-12 14:11:31 +02:00
|
|
|
parent_id: number;
|
2018-07-04 17:51:31 +02:00
|
|
|
category_id: number;
|
|
|
|
motion_block_id: number;
|
|
|
|
origin: string;
|
|
|
|
submitters: Object[];
|
|
|
|
supporters_id: number[];
|
2018-07-12 14:11:31 +02:00
|
|
|
comments: Object;
|
|
|
|
state_id: number;
|
|
|
|
state_required_permission_to_see: string;
|
|
|
|
recommendation_id: number;
|
2018-07-04 17:51:31 +02:00
|
|
|
tags_id: number[];
|
2018-07-12 14:11:31 +02:00
|
|
|
attachments_id: number[];
|
|
|
|
polls: BaseModel[];
|
|
|
|
agenda_item_id: number;
|
|
|
|
log_messages: Object[];
|
2018-07-04 17:51:31 +02:00
|
|
|
|
|
|
|
constructor(
|
2018-07-12 14:11:31 +02:00
|
|
|
id?: number,
|
|
|
|
identifier?: string,
|
|
|
|
versions?: Object[],
|
2018-07-04 17:51:31 +02:00
|
|
|
active_version?: number,
|
2018-07-12 14:11:31 +02:00
|
|
|
parent_id?: number,
|
2018-07-04 17:51:31 +02:00
|
|
|
category_id?: number,
|
|
|
|
motion_block_id?: number,
|
|
|
|
origin?: string,
|
|
|
|
submitters?: Object[],
|
|
|
|
supporters_id?: number[],
|
2018-07-12 14:11:31 +02:00
|
|
|
comments?: Object,
|
|
|
|
state_id?: number,
|
|
|
|
state_required_permission_to_see?: string,
|
|
|
|
recommendation_id?: number,
|
2018-07-04 17:51:31 +02:00
|
|
|
tags_id?: number[],
|
2018-07-12 14:11:31 +02:00
|
|
|
attachments_id?: number[],
|
|
|
|
polls?: BaseModel[],
|
|
|
|
agenda_item_id?: number,
|
|
|
|
log_messages?: Object[]
|
2018-07-04 17:51:31 +02:00
|
|
|
) {
|
2018-07-12 14:11:31 +02:00
|
|
|
super();
|
|
|
|
this._collectionString = 'motions/motion';
|
|
|
|
this.id = id;
|
|
|
|
this.identifier = identifier;
|
|
|
|
this.versions = versions;
|
2018-07-04 17:51:31 +02:00
|
|
|
this.active_version = active_version;
|
2018-07-12 14:11:31 +02:00
|
|
|
this.parent_id = parent_id;
|
2018-07-04 17:51:31 +02:00
|
|
|
this.category_id = category_id;
|
|
|
|
this.motion_block_id = motion_block_id;
|
|
|
|
this.origin = origin;
|
|
|
|
this.submitters = submitters;
|
|
|
|
this.supporters_id = supporters_id;
|
2018-07-12 14:11:31 +02:00
|
|
|
this.comments = comments;
|
|
|
|
this.state_id = state_id;
|
|
|
|
this.state_required_permission_to_see = state_required_permission_to_see;
|
|
|
|
this.recommendation_id = recommendation_id;
|
2018-07-04 17:51:31 +02:00
|
|
|
this.tags_id = tags_id;
|
2018-07-12 14:11:31 +02:00
|
|
|
this.attachments_id = attachments_id;
|
|
|
|
this.polls = polls;
|
|
|
|
this.agenda_item_id = agenda_item_id;
|
|
|
|
this.log_messages = log_messages;
|
2018-07-04 17:51:31 +02:00
|
|
|
}
|
|
|
|
}
|