import { JinsMeme } from '@ionic-native/jins-meme' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class JinsMemeMock extends JinsMeme { param { string } setAppClientID param { string } clientSecret returns { Promise < any > } setAppClientID ( appClientId , clientSecret ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Observable < any > } startScan ( ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; returns { Promise < any > } stopScan ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { string } target returns { Observable < any > } connect ( target ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; param { Boolean } flag returns { Promise < any > } setAutoConnect ( flag ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } isConnected ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } disconnect ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Observable < any > } startDataReport ( ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; returns { Promise < any > } stopDataReport ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } getSDKVersion ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } getConnectedByOthers ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } isCalibrated ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } getConnectedDeviceType ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } getConnectedDeviceSubType ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } getFWVersion ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } getHWVersion ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } isDataReceiving ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }