import { Appodeal } from '@ionic-native/appodeal' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class AppodealMock extends Appodeal { readonly AD_TYPES : { INTERSTITIAL : number ; SKIPPABLE_VIDEO : number ; BANNER : number ; BANNER_BOTTOM : number ; BANNER_TOP : number ; REWARDED_VIDEO : number ; NON_SKIPPABLE_VIDEO : number ; } ; param { string } appKey param { number } adType initialize ( appKey , adType ) { } ; returns { Promise < boolean > } isInitialized ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { number } adType returns { Promise < boolean > } show ( adType ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { number } adType param { any } placement returns { Promise < boolean > } showWithPlacement ( adType , placement ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { number } adType hide ( adType ) { } ; param { number } adType confirm ( adType ) { } ; param { number } adType returns { Promise < boolean > } isLoaded ( adType ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { number } adType returns { Promise < boolean > } isPrecache ( adType ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { number } adType param autoCache setAutoCache ( adType , autoCache ) { } ; param { number } adType cache ( adType ) { } ; param { boolean } set setOnLoadedTriggerBoth ( set ) { } ; param { boolean } enabled setSmartBanners ( enabled ) { } ; param { boolean } enabled setBannerBackground ( enabled ) { } ; param { boolean } enabled setBannerAnimation ( enabled ) { } ; param value set728x90Banners ( value ) { } ; param { boolean } logging setLogging ( logging ) { } ; param { boolean } testing setTesting ( testing ) { } ; /**
     * reset device ID
     */ resetUUID ( ) { } ; /**
     * get version of Appdeal SDK
     */ getVersion ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { string } network param { number } adType disableNetwork ( network ? , adType ? ) { } ; param { string } network param { number } adType disableNetworkType ( network ? , adType ? ) { } ; /**
     * disable Location permissions for Appodeal SDK
     */ disableLocationPermissionCheck ( ) { } ; /**
     * disable Storage permissions for Appodeal SDK
     */ disableWriteExternalStoragePermissionCheck ( ) { } ; param { boolean } enabled enableInterstitialCallbacks ( enabled ) { } ; param { boolean } enabled enableSkippableVideoCallbacks ( enabled ) { } ; param { boolean } enabled enableNonSkippableVideoCallbacks ( enabled ) { } ; param { boolean } enabled enableBannerCallbacks ( enabled ) { } ; param { boolean } enabled enableRewardedVideoCallbacks ( enabled ) { } ; param { string } name param { boolean } value setCustomBooleanRule ( name , value ) { } ; param { string } name param { number } value setCustomIntegerRule ( name , value ) { } ; param { string } name param { number } value setCustomDoubleRule ( name , value ) { } ; param { string } name param { string } value setCustomStringRule ( name , value ) { } ; param id setUserId ( id ) { } ; param email setEmail ( email ) { } ; param birthday setBirthday ( birthday ) { } ; param age setAge ( age ) { } ; param gender setGender ( gender ) { } ; param occupation setOccupation ( occupation ) { } ; param relation setRelation ( relation ) { } ; param smoking setSmoking ( smoking ) { } ; param alcohol setAlcohol ( alcohol ) { } ; param interests setInterests ( interests ) { } ; onInterstitialLoaded ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onInterstitialFailedToLoad ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onInterstitialShown ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onInterstitialClicked ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onInterstitialClosed ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onSkippableVideoLoaded ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onSkippableVideoFailedToLoad ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onSkippableVideoShown ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onSkippableVideoFinished ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onSkippableVideoClosed ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onRewardedVideoLoaded ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onRewardedVideoFailedToLoad ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onRewardedVideoShown ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onRewardedVideoFinished ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onRewardedVideoClosed ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onNonSkippableVideoLoaded ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onNonSkippableVideoFailedToLoad ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onNonSkippableVideoShown ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onNonSkippableVideoFinished ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onNonSkippableVideoClosed ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onBannerClicked ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onBannerFailedToLoad ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onBannerLoaded ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; onBannerShown ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; }