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 TypeMethodDescriptionintvoidsetWeatherApiKey(String weatherApiKey) voidsetWeatherUrlAttributes(String weatherUrlAttributes) voidsetWeatherUrlBase(String weatherUrlBase)
-
Constructor Details
-
WeatherUpdateAction
public WeatherUpdateAction()
-
-
Method Details
-
execute
Description copied from interface:ActionExecutor- Specified by:
executein interfaceActionExecutor- Parameters:
action- theActionto executeevent- theEventthat triggered the action- Returns:
- an integer status corresponding to what happened as defined by public constants of
EventService
-
setWeatherApiKey
-
setWeatherUrlBase
-
setWeatherUrlAttributes
-