import { AppPreferences } from '@ionic-native/app-preferences' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class AppPreferencesMock extends AppPreferences { param { string } dict param { string } key return { Promise < any > } fetch ( dict , key ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { string } dict param { string } key param { any } value return { Promise < any > } store ( dict , key , value ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } param { string } dict param { string } key return { Promise < any > } remove ( dict , key ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } clearAll ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } show ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { boolean } subscribe return { Observable < any > } watch ( subscribe ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; param { string } suiteName returns { Object } suite ( suiteName ) { } ; iosSuite ( suiteName ) { } ; returns { Object } cloudSync ( ) { return new Object ; } ; returns { Object } defaults ( ) { return new Object ; } ; }