OpenSlides/client/src/app/site/base/base-view-model.ts
Sean Engelhardt 80cfeaac35 Create more list views
Also:
- Update dependencies
- Clean up proxy file
2018-09-18 10:21:59 +02:00

20 lines
519 B
TypeScript

import { BaseModel } from '../../shared/models/base/base-model';
import { Displayable } from '../../shared/models/base/displayable';
/**
* Base class for view models. alls view models should have titles.
*/
export abstract class BaseViewModel implements Displayable {
public abstract updateValues(update: BaseModel): void;
public abstract getTitle(): string;
public getListTitle(): string {
return this.getTitle();
}
public toString(): string {
return this.getTitle();
}
}