Class 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 Detail

      • WeatherUpdateAction

        public WeatherUpdateAction()
    • Method Detail

      • execute

        public int execute​(Action action,
                           Event event)
        Description copied from interface: ActionExecutor
        Executes a specified Action, given a triggering Event.
        Specified by:
        execute in interface ActionExecutor
        Parameters:
        action - the Action to execute
        event - the Event 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)