2019-01-24 16:25:50 +01:00
|
|
|
import { Projectable, ProjectorElementBuildDeskriptor } from './projectable';
|
2019-01-10 15:06:10 +01:00
|
|
|
import { BaseViewModel } from './base-view-model';
|
2019-02-28 09:51:54 +01:00
|
|
|
import { ConfigService } from 'app/core/ui-services/config.service';
|
2019-04-23 16:57:35 +02:00
|
|
|
import { BaseModel } from 'app/shared/models/base/base-model';
|
2019-01-10 15:06:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Base view class for projectable models.
|
|
|
|
*/
|
2019-04-23 16:57:35 +02:00
|
|
|
export abstract class BaseProjectableViewModel<M extends BaseModel = any> extends BaseViewModel<M>
|
|
|
|
implements Projectable {
|
2019-02-28 09:51:54 +01:00
|
|
|
public abstract getSlide(configService?: ConfigService): ProjectorElementBuildDeskriptor;
|
2019-02-14 12:29:02 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @returns the projector title used for managing projector elements.
|
|
|
|
*/
|
|
|
|
public getProjectorTitle = () => {
|
|
|
|
return this.getTitle();
|
|
|
|
};
|
2019-01-10 15:06:10 +01:00
|
|
|
}
|