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-01-10 15:06:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Base view class for projectable models.
|
|
|
|
*/
|
2019-02-01 13:56:08 +01:00
|
|
|
export abstract class BaseProjectableViewModel extends BaseViewModel 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
|
|
|
}
|