import { FTP } from '@ionic-native/ftp' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export class FTPMock extends FTP { param hostname { string } param username { string } param password { string } return { Promise < any > } connect ( hostname , username , password ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param path { string } return { Promise < any > } ls ( path ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param path { string } return { Promise < any > } mkdir ( path ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param path { string } return { Promise < any > } rmdir ( path ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param file { string } return { Promise < any > } rm ( file ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param localFile { string } param remoteFile { string } return { Promise < any > } upload ( localFile , remoteFile ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; param localFile { string } param remoteFile { string } return { Promise < any > } download ( localFile , remoteFile ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; return { Promise < any > } cancel ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; return { Promise < any > } disconnect ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }