src/weather.interfaces.ts
backgroundColor |
backgroundColor: |
Default value : white
|
Defined in src/weather.interfaces.ts:4
|
color |
color: |
Default value : black
|
Defined in src/weather.interfaces.ts:5
|
forecastMode |
forecastMode: |
Type : ForecastMode
|
Defined in src/weather.interfaces.ts:12
|
height |
height: |
Type : any
|
Defined in src/weather.interfaces.ts:7
|
language |
language: |
Type : string
|
Defined in src/weather.interfaces.ts:11
|
layout |
layout: |
Type : WeatherLayout
|
Defined in src/weather.interfaces.ts:13
|
location |
location: |
Type : WeatherQueryParams
|
Defined in src/weather.interfaces.ts:2
|
scale |
scale: |
Type : TemperatureScale
|
Defined in src/weather.interfaces.ts:3
|
showDetails |
showDetails: |
Type : boolean
|
Defined in src/weather.interfaces.ts:9
|
showForecast |
showForecast: |
Type : boolean
|
Defined in src/weather.interfaces.ts:10
|
showWind |
showWind: |
Type : boolean
|
Defined in src/weather.interfaces.ts:8
|
width |
width: |
Type : any
|
Defined in src/weather.interfaces.ts:6
|
export class WeatherSettings {
location: WeatherQueryParams = { cityName: 'Szczecin' };
scale: TemperatureScale = TemperatureScale.CELCIUS;
backgroundColor? = 'white';
color? = 'black';
width?: any;
height?: any;
showWind?: boolean;
showDetails?: boolean;
showForecast?: boolean;
language?: string;
forecastMode?: ForecastMode;
layout?: WeatherLayout = WeatherLayout.NARROW;
}
export enum ForecastMode {
GRID = <any>'GRID',
DETAILED = <any>'DETAILED'
}
export enum TemperatureScale {
CELCIUS = <any>'celcius',
KELVIN = <any>'kelvin',
FAHRENHEIT = <any>'fahrenheit'
}
export interface WeatherQueryParams {
cityId?: number;
cityName?: string;
latLng?: {
lat: number;
lng: number;
};
zipCode?: number;
units?: TemperatureScale;
lang?: string;
}
export enum WeatherLayout {
WIDE = <any>'wide',
NARROW = <any>'narrow'
}