import { Globalization } from '@ionic-native/globalization' ; export interface GlobalizationOptions { formatLength : string ; selector : string ; } export class GlobalizationMock extends Globalization { returns { Promise < { value : string } > } getPreferredLanguage ( ) { let theResult = { value : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; returns { Promise < { value : string } > } getLocaleName ( ) { let theResult = { value : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; param { Date } date param options returns { Promise < { value : string } > } dateToString ( date , options ) { let theResult = { value : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; param { string } dateString param options returns { Promise < { year : number , month : number , day : number , hour : number , minute : number , second : number , millisecond : number } > } stringToDate ( dateString , options ) { let theResult = { year : 0 , month : 0 , day : 0 , hour : 0 , minute : 0 , second : 0 , millisecond : 0 } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; param options returns { Promise < { pattern : string , timezone : string , iana_timezone : string , utc_offset : number , dst_offset : number } > } getDatePattern ( options ) { let theResult = { pattern : '' , timezone : '' , iana_timezone : '' , utc_offset : 0 , dst_offset : 0 } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; param options returns { Promise < { value : Array < string > } > } getDateNames ( options ) { return new Promise ( ( resolve , reject ) => { resolve ( { value : [ '' ] } ) ; } ) ; } ; param { data } date returns { Promise < { dst : string } > } isDayLightSavingsTime ( date ) { let theResult = { dst : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; returns { Promise < { value : string } > } getFirstDayOfWeek ( ) { let theResult = { value : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; param numberToConvert { Number } param options { Object } numberToString ( numberToConvert , options ) { let theResult = { value : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; param { string } stringToConvert param options returns { Promise < { value : number | string } > } stringToNumber ( stringToConvert , options ) { let theResult = { value : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; param options returns { Promise < { pattern : string , symbol : string , fraction : number , rounding : number , positive : string , negative : string , decimal : string , grouping : string } > } getNumberPattern ( options ) { let theResult = { pattern : '' , symbol : '' , fraction : 0 , rounding : 0 , positive : '' , negative : '' , decimal : '' , grouping : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; param { string } currencyCode returns { Promise < { pattern : string , code : string , fraction : number , rounding : number , decimal : number , grouping : string } > } getCurrencyPattern ( currencyCode ) { let theResult = { pattern : '' , code : '' , fraction : 0 , rounding : 0 , decimal : 0 , grouping : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; }