Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
WeatherServiceData

WeatherServiceData Class Reference

Constructors

Instance Methods

Constructors

new WeatherServiceData(parameters)

Initalizes an instance of WeatherServiceData.

Instance Methods

weatherServiceData.getAlerts() ⇒ Array.<WeatherAlert>

Get the Alerts

Kind: Instance method of WeatherServiceData
Returns: Array.<WeatherAlert> - the KEY_ALERTS value

weatherServiceData.getCurrentForecast() ⇒ WeatherData

Get the CurrentForecast

Kind: Instance method of WeatherServiceData
Returns: WeatherData - the KEY_CURRENT_FORECAST value

weatherServiceData.getHourlyForecast() ⇒ Array.<WeatherData>

Get the HourlyForecast

Kind: Instance method of WeatherServiceData
Returns: Array.<WeatherData> - the KEY_HOURLY_FORECAST value

weatherServiceData.getLocation() ⇒ LocationDetails

Get the Location

Kind: Instance method of WeatherServiceData
Returns: LocationDetails - the KEY_LOCATION value

weatherServiceData.getMinuteForecast() ⇒ Array.<WeatherData>

Get the MinuteForecast

Kind: Instance method of WeatherServiceData
Returns: Array.<WeatherData> - the KEY_MINUTE_FORECAST value

weatherServiceData.getMultidayForecast() ⇒ Array.<WeatherData>

Get the MultidayForecast

Kind: Instance method of WeatherServiceData
Returns: Array.<WeatherData> - the KEY_MULTIDAY_FORECAST value

weatherServiceData.setAlerts(alerts) ⇒ WeatherServiceData

Set the Alerts

Kind: Instance method of WeatherServiceData
Returns: WeatherServiceData - The class instance for method chaining.

ParamTypeDescription
alerts Array.<WeatherAlert> This array should be ordered with the first object being the current day - The desired Alerts.

weatherServiceData.setCurrentForecast(forecast) ⇒ WeatherServiceData

Set the CurrentForecast

Kind: Instance method of WeatherServiceData
Returns: WeatherServiceData - The class instance for method chaining.

ParamTypeDescription
forecast WeatherData The desired CurrentForecast.

weatherServiceData.setHourlyForecast(forecast) ⇒ WeatherServiceData

Set the HourlyForecast

Kind: Instance method of WeatherServiceData
Returns: WeatherServiceData - The class instance for method chaining.

ParamTypeDescription
forecast Array.<WeatherData> The desired HourlyForecast.

weatherServiceData.setLocation(location) ⇒ WeatherServiceData

Set the Location

Kind: Instance method of WeatherServiceData
Returns: WeatherServiceData - The class instance for method chaining.

ParamTypeDescription
location LocationDetails The desired Location.

weatherServiceData.setMinuteForecast(forecast) ⇒ WeatherServiceData

Set the MinuteForecast

Kind: Instance method of WeatherServiceData
Returns: WeatherServiceData - The class instance for method chaining.

ParamTypeDescription
forecast Array.<WeatherData> The desired MinuteForecast.

weatherServiceData.setMultidayForecast(forecast) ⇒ WeatherServiceData

Set the MultidayForecast

Kind: Instance method of WeatherServiceData
Returns: WeatherServiceData - The class instance for method chaining.

ParamTypeDescription
forecast Array.<WeatherData> The desired MultidayForecast.
View on GitHub.com
Previous Section Next Section