-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #385 from deutschebank/spring-bot-master-db
Retry / File State Storage
- Loading branch information
Showing
18 changed files
with
554 additions
and
311 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
...low-spring-boot-starter/src/main/java/org/finos/springbot/teams/TeamsScheduledConfig.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...spring-boot-starter/src/main/java/org/finos/springbot/teams/handlers/ActivityHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.finos.springbot.teams.handlers; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
import org.finos.springbot.teams.content.TeamsAddressable; | ||
|
||
import com.microsoft.bot.schema.Activity; | ||
import com.microsoft.bot.schema.ResourceResponse; | ||
|
||
public interface ActivityHandler { | ||
|
||
public CompletableFuture<ResourceResponse> handleActivity(Activity activity, TeamsAddressable to); | ||
} |
38 changes: 0 additions & 38 deletions
38
...starter/src/main/java/org/finos/springbot/teams/handlers/InMemoryMessageRetryHandler.java
This file was deleted.
Oops, something went wrong.
99 changes: 0 additions & 99 deletions
99
...ow-spring-boot-starter/src/main/java/org/finos/springbot/teams/handlers/MessageRetry.java
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ng-boot-starter/src/main/java/org/finos/springbot/teams/handlers/MessageRetryHandler.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...-boot-starter/src/main/java/org/finos/springbot/teams/handlers/SimpleActivityHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.finos.springbot.teams.handlers; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
import org.finos.springbot.teams.content.TeamsAddressable; | ||
import org.finos.springbot.teams.conversations.TeamsConversations; | ||
|
||
import com.microsoft.bot.schema.Activity; | ||
import com.microsoft.bot.schema.ResourceResponse; | ||
|
||
public class SimpleActivityHandler implements ActivityHandler { | ||
|
||
private TeamsConversations tc; | ||
|
||
public SimpleActivityHandler(TeamsConversations tc) { | ||
this.tc = tc; | ||
} | ||
|
||
@Override | ||
public CompletableFuture<ResourceResponse> handleActivity(Activity activity, TeamsAddressable to) { | ||
return tc.handleActivity(activity, to); | ||
} | ||
|
||
} |
Oops, something went wrong.