import { AdMobFree } from '@ionic-native/admob-free' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; import 'rxjs/add/observable/fromEvent' ; export interface AdMobFreeBannerConfig { /**
     * Ad Unit ID
     */ id ? : string ; /**
     * Receiving test ad
     */ isTesting ? : boolean ; /**
     * Auto show ad when loaded
     */ autoShow ? : boolean ; /**
     * Set to true, to put banner at top
     */ bannerAtTop ? : boolean ; /**
     * Set to true, to allow banner overlap WebView
     */ overlap ? : boolean ; /**
     * Set to true to avoid ios7 status bar overlap
     */ offsetTopBar ? : boolean ; /**
     * Banner  size
     */ size ? : string ; } export interface AdMobFreeInterstitialConfig { /**
     * Ad Unit ID
     */ id ? : string ; /**
     * Receiving test ad
     */ isTesting ? : boolean ; /**
     * Auto show ad when loaded
     */ autoShow ? : boolean ; } export interface AdMobFreeRewardVideoConfig { /**
     * Ad Unit ID
     */ id ? : string ; /**
     * Receiving test ad
     */ isTesting ? : boolean ; /**
     * Auto show ad when loaded
     */ autoShow ? : boolean ; } export class AdMobFreeMock extends AdMobFree { type { Object } events : any ; param event { string } return { Observable < any > } on ( event ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; type { AdMobFreeBanner } banner : AdMobFreeBanner ; type { AdMobFreeInterstitial } interstitial : AdMobFreeInterstitial ; type { AdMobFreeRewardVideo } rewardVideo : AdMobFreeRewardVideo ; } hidden export class AdMobFreeBanner { param options return { AdMobFreeBannerConfig } config ( options ) { let config ; return config ; } ; return { Promise < any > } hide ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } prepare ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } remove ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } show ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; } hidden export class AdMobFreeInterstitial { param options return { AdMobFreeInterstitialConfig } config ( options ) { let config ; return config ; } ; return { Promise < any > } isReady ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } prepare ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } show ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; } hidden export class AdMobFreeRewardVideo { param options return { AdMobFreeRewardVideoConfig } config ( options ) { let config ; return config ; } ; return { Promise < any > } isReady ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } prepare ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } show ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }