import { OvSettings } from '../types/ov-settings' ; export class OvSettingsModel { protected ovSettings : OvSettings ; constructor ( ) { this . ovSettings = { chat : true , autopublish : false , toolbar : true , footer : true , toolbarButtons : { video : true , audio : true , fullscreen : true , screenShare : true , layoutSpeaking : true , exit : true } } ; } public set ( ovSettings ) { this . ovSettings = ovSettings ; } public isAutoPublish ( ) { return this . ovSettings . autopublish ; } public hasVideo ( ) { return this . ovSettings . toolbarButtons . video ; } public hasScreenSharing ( ) { return this . ovSettings . toolbarButtons . screenShare ; } public hasLayoutSpeaking ( ) { return this . ovSettings . toolbarButtons . layoutSpeaking ; } public hasFullscreen ( ) { return this . ovSettings . toolbarButtons . fullscreen ; } public hasAudio ( ) { return this . ovSettings . toolbarButtons . audio ; } public hasChat ( ) { return this . ovSettings . chat ; } public hasExit ( ) { return this . ovSettings . toolbarButtons . exit ; } public setScreenSharing ( screenShare ) { this . ovSettings . toolbarButtons . screenShare = screenShare ; } public hasFooter ( ) { return this . ovSettings . footer ; } public hasToolbar ( ) { return this . ovSettings . toolbar ; } }