Class WeatherUpdateAction
java.lang.Object
org.apache.unomi.weatherupdate.actions.WeatherUpdateAction
- All Implemented Interfaces:
ActionExecutor
Get the weather location of the users by an API
- Author:
- dsalhotra
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
setWeatherApiKey
(String weatherApiKey) void
setWeatherUrlAttributes
(String weatherUrlAttributes) void
setWeatherUrlBase
(String weatherUrlBase)
-
Constructor Details
-
WeatherUpdateAction
public WeatherUpdateAction()
-
-
Method Details
-
execute
Description copied from interface:ActionExecutor
- Specified by:
execute
in interfaceActionExecutor
- Parameters:
action
- theAction
to executeevent
- theEvent
that triggered the action- Returns:
- an integer status corresponding to what happened as defined by public constants of
EventService
-
setWeatherApiKey
-
setWeatherUrlBase
-
setWeatherUrlAttributes
-