import { Geofence } from '@ionic-native/geofence' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class GeofenceMock extends Geofence { TransitionType : { ENTER : number ; EXIT : number ; BOTH : number ; } ; return { Observable < any > } onTrasitionReceived ( ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; returns { Promise < any > } initialize ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } addOrUpdate ( geofences ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } remove ( geofenceId ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } removeAll ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < Array < string > > } getWatched ( ) { return new Promise ( ( resolve , reject ) => { resolve ( '' ) ; } ) ; } ; returns { Observable < any > } onTransitionReceived ( ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; returns { Observable < any > } onNotificationClicked ( ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; }