import { OnInit, ElementRef } from '@angular/core'; import { CfCoreBusinessComponent } from '../core-business/core-business.component'; import { InputModel } from '../../models/input/input.model'; import { CoreBusinessModel } from '../../models/core-business.model'; import { WeatherComponentModel } from '../../models/weather/weather-component.model'; import { WeatherService } from '../../services/weather.service'; import { MapModelsService } from '../../services/map-models.service'; import { CfEventService } from '../../services/event.service'; import { I18NService } from '../../services/i18n-service/i18n.service'; import { Subscription } from 'rxjs/Subscription'; import { ToolbarModel } from '../../models/toolbar/toolbar.model'; /** * This component refers to a Weather app. */ export declare class CfWeatherComponent extends CfCoreBusinessComponent implements OnInit { elementRef: ElementRef; private weatherService; private mappingService; private eventService; private i18nService; /** *
The subscription object for the internationalization service.
*/ onLangChangeSubscription: Subscription; /** *The weather component object that is bound in the template/
*/ cfWeather: WeatherComponentModel; /** *It represents the list of cities to initialize the component with.
*/ settings: WeatherComponentModel; /** *Array of the weather for the next 6/7 days.
*/ days: Object[]; /** *The object holding the weather info for today.
*/ today: Object; /** *"Today" translated to local language.
*/ todayLabel: string; /** *The input settings for the input component.
*/ cityInput: InputModel; toolbarProperties: CoreBusinessModel; weatherToolbar: ToolbarModel; constructor(elementRef: ElementRef, weatherService: WeatherService, mappingService: MapModelsService, eventService: CfEventService, i18nService: I18NService); /** *This method is called when initializing the component.
*It initializes the mapping to the service and initializes the component with the user's default cities.
*/ ngOnInit(): void; /** *This method is called when component is destroyed
*/ ngOnDestroy(): void; /** *This method is called to initialize the component with the user's chosen cities/
*/ initCity(): void; /** *Gets the weather of a city by providing it coordinates.
* @paramcoor Coordinates of the needed city
*/ getWeather(coor: Object): void; /** *Maps the returned objects from the weather service to the appropriate objects needed for the html template.
* @param weathArray of the returned daily weathers from the service.
*/ mapToDaily(weath: Object[]): void; itemClicked(name: string): void; /** *This method internationalizes the component.
*/ internationalize(locale: string): void; /** *Updates the component with the new city provided from the user.
*/ updateCity(): void; /** *Checks if there are any entries for this component in the event mapping of the event service.
* @param inputNameThe name of the input to match this component. It's weather in this case/
*/ checkEventMapping(inputName: string): void; }