import { Pipe , PipeTransform } from '@angular/core' ; import { OvSettingsModel } from '../models/ovSettings' ; @ Pipe ( { name : 'hasChat' , pure : true } ) export class HasChatPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . hasChat ( ) ; } } @ Pipe ( { name : 'hasAudio' , pure : true } ) export class HasAudioPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . hasAudio ( ) ; } } @ Pipe ( { name : 'hasVideo' , pure : true } ) export class HasVideoPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . hasVideo ( ) ; } } @ Pipe ( { name : 'isAutoPublish' , pure : true } ) export class IsAutoPublishPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . isAutoPublish ( ) ; } } @ Pipe ( { name : 'hasScreenSharing' , pure : true } ) export class HasScreenSharingPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . hasScreenSharing ( ) ; } } @ Pipe ( { name : 'hasFullscreen' , pure : true } ) export class HasFullscreenPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . hasFullscreen ( ) ; } } @ Pipe ( { name : 'hasLayoutSpeaking' , pure : true } ) export class HasLayoutSpeakingPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . hasLayoutSpeaking ( ) ; } } @ Pipe ( { name : 'hasExit' , pure : true } ) export class HasExitPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . hasExit ( ) ; } } @ Pipe ( { name : 'hasToolbar' , pure : true } ) export class HasToolbarPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . hasToolbar ( ) ; } } @ Pipe ( { name : 'hasFooter' , pure : true } ) export class HasFooterPipe implements PipeTransform { constructor ( ) { } transform ( ovSettings ) { return ! ovSettings || ovSettings . hasFooter ( ) ; } }