OpenSlides/client/src/app/shared/models/motions/state.ts

44 lines
1.2 KiB
TypeScript
Raw Normal View History

2019-07-17 16:13:49 +02:00
import { BaseModel } from '../base/base-model';
2018-11-04 11:11:48 +01:00
/**
* Specifies if an amendment of this state/recommendation should be merged into the motion
*/
export enum MergeAmendment {
NO = -1,
UNDEFINED = 0,
YES = 1
}
/**
* Representation of a workflow state
*
* Part of the 'states'-array in motion/workflow
* @ignore
*/
2019-07-17 16:13:49 +02:00
export class State extends BaseModel<State> {
public static COLLECTIONSTRING = 'motions/state';
2018-08-29 13:21:25 +02:00
public id: number;
public name: string;
public recommendation_label: string;
public css_class: string;
public restriction: string[];
2018-08-29 13:21:25 +02:00
public allow_support: boolean;
public allow_create_poll: boolean;
public allow_submitter_edit: boolean;
public dont_set_identifier: boolean;
public show_state_extension_field: boolean;
2018-11-04 11:11:48 +01:00
public merge_amendment_into_final: MergeAmendment;
2018-08-29 13:21:25 +02:00
public show_recommendation_extension_field: boolean;
public next_states_id: number[];
public workflow_id: number;
/**
* Needs to be completely optional because Workflow has (yet) the optional parameter 'states'
2018-09-04 11:33:28 +02:00
* @param input If given, it will be deserialized
*/
2018-09-04 11:33:28 +02:00
public constructor(input?: any) {
2019-07-17 16:13:49 +02:00
super(State.COLLECTIONSTRING, input);
2018-08-23 10:35:05 +02:00
}
}