public boolean addTimer ( VacuumTimer timer ) throws CommandExecutionException { if ( timer == null ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_PARAMETERS ) ; JSONArray tm = timer . construct ( ) ; if ( tm == null ) return false ; JSONArray payload = new JSONArray ( ) ; payload . put ( tm ) ; return sendOk ( "set_timer" , payload ) ; }
Add a new scheduled cleanup .