import { Firebase } from '@ionic-native/firebase' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class FirebaseMock extends Firebase { return { Promise < any > } getToken ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Observable < any > } onTokenRefresh ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; return { Observable < any > } onNotificationOpen ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; return { Promise < any > } grantPermission ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } hasPermission ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param badgeNumber { number } return { Promise < any > } setBadgeNumber ( badgeNumber ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getBadgeNumber ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param topic { string } return { Promise < any > } subscribe ( topic ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param topic { string } return { Promise < any > } unsubscribe ( topic ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param type { string } param data { Object } return { Promise < any > } logEvent ( type , data ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param message { string } return { Promise < any > } logError ( message ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param name { string } return { Promise < any > } setScreenName ( name ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param userId { string } return { Promise < any > } setUserId ( userId ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param name { string } param value { string } return { Promise < any > } setUserProperty ( name , value ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param cacheExpirationSeconds return { Promise < any > } fetch ( cacheExpirationSeconds ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } activateFetched ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param key { string } param namespace { string } return { Promise < any > } getValue ( key , namespace ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param key { string } param namespace { string } return { Promise < any > } getByteArray ( key , namespace ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } getInfo ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param settings { Object } return { Promise < any > } setConfigSettings ( settings ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param defaults { Object } param namespace { string } return { Promise < any > } setDefaults ( defaults , namespace ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }