OpenSlides/client/src/app/shared/models/assignments/assignment-user.ts

28 lines
684 B
TypeScript
Raw Normal View History

import { Deserializable } from '../deserializable.model';
/**
* Content of the 'assignment_related_users' property
* @ignore
*/
export class AssignmentUser implements Deserializable {
2018-08-29 13:21:25 +02:00
public id: number;
public user_id: number;
public elected: boolean;
public assignment_id: number;
public weight: number;
/**
* Needs to be completely optional because assignment has (yet) the optional parameter 'assignment_related_users'
2018-09-04 11:33:28 +02:00
* @param input
*/
2018-09-04 11:33:28 +02:00
public constructor(input?: any) {
if (input) {
this.deserialize(input);
}
}
2018-09-04 11:33:28 +02:00
public deserialize(input: any): void {
Object.assign(this, input);
}
}