2019-04-23 16:57:35 +02:00
|
|
|
import { BaseModelWithListOfSpeakers } from 'app/shared/models/base/base-model-with-list-of-speakers';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { DetailNavigable, isDetailNavigable } from 'app/shared/models/base/detail-navigable';
|
|
|
|
import { BaseProjectableViewModel } from './base-projectable-view-model';
|
2019-04-23 16:57:35 +02:00
|
|
|
|
|
|
|
export function isBaseViewModelWithListOfSpeakers(obj: any): obj is BaseViewModelWithListOfSpeakers {
|
|
|
|
const model = <BaseViewModelWithListOfSpeakers>obj;
|
|
|
|
return (
|
|
|
|
!!obj &&
|
|
|
|
isDetailNavigable(model) &&
|
|
|
|
model.getListOfSpeakersTitle !== undefined &&
|
|
|
|
model.listOfSpeakers !== undefined &&
|
2019-09-26 14:07:33 +02:00
|
|
|
model.getModel !== undefined &&
|
|
|
|
model.getModel().list_of_speakers_id !== undefined
|
2019-04-23 16:57:35 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2019-09-26 14:07:33 +02:00
|
|
|
export interface BaseViewModelWithListOfSpeakers<M extends BaseModelWithListOfSpeakers = any> extends DetailNavigable {
|
2019-07-01 11:23:33 +02:00
|
|
|
listOfSpeakers: any | null;
|
2019-04-23 16:57:35 +02:00
|
|
|
getListOfSpeakersTitle: () => string;
|
|
|
|
getListOfSpeakersSlideTitle: () => string;
|
|
|
|
}
|
|
|
|
|
2019-09-26 14:07:33 +02:00
|
|
|
export abstract class BaseViewModelWithListOfSpeakers<
|
|
|
|
M extends BaseModelWithListOfSpeakers = any
|
|
|
|
> extends BaseProjectableViewModel<M> {
|
2019-04-23 16:57:35 +02:00
|
|
|
public abstract getDetailStateURL(): string;
|
|
|
|
}
|