import { EstimoteBeacons } from '@ionic-native/estimote-beacons' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export interface EstimoteBeaconRegion { state ? : string ; major : number ; minor : number ; identifier ? : string ; uuid : string ; } export class EstimoteBeaconsMock extends EstimoteBeacons { /** Proximity value */ ProximityUnknown : number ; /** Proximity value */ ProximityImmediate : number ; /** Proximity value */ ProximityNear : number ; /** Proximity value */ ProximityFar : number ; /** Beacon colour */ BeaconColorUnknown : number ; /** Beacon colour */ BeaconColorMintCocktail : number ; /** Beacon colour */ BeaconColorIcyMarshmallow : number ; /** Beacon colour */ BeaconColorBlueberryPie : number ; /**
     * Beacon colour.
     */ BeaconColorSweetBeetroot : number ; /** Beacon colour */ BeaconColorCandyFloss : number ; /** Beacon colour */ BeaconColorLemonTart : number ; /** Beacon colour */ BeaconColorVanillaJello : number ; /** Beacon colour */ BeaconColorLiquoriceSwirl : number ; /** Beacon colour */ BeaconColorWhite : number ; /** Beacon colour */ BeaconColorTransparent : number ; /** Region state */ RegionStateUnknown : string ; /** Region state */ RegionStateOutside : string ; /** Region state */ RegionStateInside : string ; usage see https returns { Promise < any > } requestWhenInUseAuthorization ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage see https returns { Promise < any > } requestAlwaysAuthorization ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage see https returns { Promise < any > } authorizationStatus ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage param uuid { string } param major { number } param minor { number } param regionId { string } returns { Promise < any > } startAdvertisingAsBeacon ( uuid , major , minor , regionId ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage returns { Promise < any > } stopAdvertisingAsBeacon ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; see http usage param enable { number } returns { Promise < any > } enableAnalytics ( enable ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; see http usage returns { Promise < any > } isAnalyticsEnabled ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; see http usage returns { Promise < any > } isAuthorized ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; see http usage param appID { string } param appToken { string } returns { Promise < any > } setupAppIDAndAppToken ( appID , appToken ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage returns { Observable < any > } startEstimoteBeaconDiscovery ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; usage returns { Promise < any > } stopEstimoteBeaconDiscovery ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage param region { EstimoteBeaconRegion } returns { Observable < any > } startRangingBeaconsInRegion ( region ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; usage param region { EstimoteBeaconRegion } returns { Promise < any > } stopRangingBeaconsInRegion ( region ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; /**
     * Start ranging secure beacons. Available on iOS.
     * This function has the same parameters/behaviour as
     *  EstimoteBeacons . startRangingBeaconsInRegion .
     * To use secure beacons set the App ID and App Token using
     *  EstimoteBeacons . setupAppIDAndAppToken .
     *  returns { Observable < any > } startRangingSecureBeaconsInRegion ( region ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; /**
     * Stop ranging secure beacons. Available on iOS.
     * This function has the same parameters/behaviour as
     *  EstimoteBeacons . stopRangingBeaconsInRegion .
     *  returns { Promise < any > } stopRangingSecureBeaconsInRegion ( region ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage param region { EstimoteBeaconRegion } param notifyEntryStateOnDisplay { boolean } Set to true to detect if you
     * are inside a region when the user turns display on, see
     *  https * for further details (iOS only).
     *  returns { Observable < any > } startMonitoringForRegion ( region , notifyEntryStateOnDisplay ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; usage param region { EstimoteBeaconRegion } returns { Promise < any > } stopMonitoringForRegion ( region ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; /**
     * Start monitoring secure beacons. Available on iOS.
     * This function has the same parameters/behaviour as
     * EstimoteBeacons.startMonitoringForRegion.
     * To use secure beacons set the App ID and App Token using
     *  EstimoteBeacons . setupAppIDAndAppToken .
     *  see EstimoteBeacons . startMonitoringForRegion param region { EstimoteBeaconRegion } param notifyEntryStateOnDisplay { boolean } returns { Observable < any > } startSecureMonitoringForRegion ( region , notifyEntryStateOnDisplay ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; /**
    * Stop monitoring secure beacons. Available on iOS.
    * This function has the same parameters/behaviour as
    *  EstimoteBeacons . stopMonitoringForRegion .
    *  param region { EstimoteBeaconRegion } returns { Promise < any > } stopSecureMonitoringForRegion ( region ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage param beacon { Beacon } returns { Promise < any > } connectToBeacon ( beacon ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage returns { Promise < any > } disconnectConnectedBeacon ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage param uuid { string } returns { Promise < any > } writeConnectedProximityUUID ( uuid ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage param major { number } returns { Promise < any > } writeConnectedMajor ( major ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; usage param minor { number } returns { Promise < any > } writeConnectedMinor ( minor ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }