Class WeatherUpdateAction
- java.lang.Object
-
- org.apache.unomi.weatherupdate.actions.WeatherUpdateAction
-
- All Implemented Interfaces:
ActionExecutor
public class WeatherUpdateAction extends Object implements ActionExecutor
Get the weather location of the users by an API- Author:
- dsalhotra
-
-
Constructor Summary
Constructors Constructor Description WeatherUpdateAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(Action action, Event event)
void
setWeatherApiKey(String weatherApiKey)
void
setWeatherUrlAttributes(String weatherUrlAttributes)
void
setWeatherUrlBase(String weatherUrlBase)
-
-
-
Method Detail
-
execute
public int execute(Action action, Event event)
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
public void setWeatherApiKey(String weatherApiKey)
-
setWeatherUrlBase
public void setWeatherUrlBase(String weatherUrlBase)
-
setWeatherUrlAttributes
public void setWeatherUrlAttributes(String weatherUrlAttributes)
-
-