import { MusicControls } from '@ionic-native/music-controls' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export interface MusicControlsOptions { track : string ; artist : string ; cover : string ; isPlaying : boolean ; dismissable : boolean ; hasPrev : boolean ; hasNext : boolean ; hasClose : boolean ; album : string ; duration : number ; elapsed : number ; ticker : string ; } export class MusicControlsMocks extends MusicControls { param options { MusicControlsOptions } returns { Promise < any > } create ( options ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } destroy ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Observable < any > } subscribe ( ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; /**
     * Start listening for events, this enables the Observable from the subscribe method
     */ listen ( ) { } ; param isPlaying { boolean } updateIsPlaying ( isPlaying ) { } ; param args { Object } updateElapsed ( args ) { } ; param dismissable { boolean } updateDismissable ( dismissable ) { } ; }