Skip to content

Commit

Permalink
#28 alle vorlesen geht. auswählen wie im chat geht nicht
Browse files Browse the repository at this point in the history
  • Loading branch information
candydragon committed Dec 13, 2018
1 parent 1d2dc1c commit dafed84
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
31 changes: 16 additions & 15 deletions models/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
"name": "SaveRecipeToFavoriteIntent",
"slots": [
{
"name": "FavoritRecipe",
"type": "FavoritRecipes"
"name": "Recipe",
"type": "LIST_OF_RECIPES"
}
],
"samples": [
Expand All @@ -120,6 +120,20 @@
"kann ich ein Rezept aendern",
"aendere ein Rezept fuer mich"
]
},
{
"name": "SelectRecipeByFavoritsIntentSelectorIntent",
"slots": [
{
"name": "Recipe",
"type": "LIST_OF_RECIPES"
}
],
"samples": [
"ich wähle {Recipe} aus Favoriten aus",
"nehme {Recipe} aus meinen Favoriten",
"Kannst du {Recipe} auswählen"
]
},
{
"name": "ModifyRecipeByUnitsIntent",
Expand All @@ -139,19 +153,6 @@
"{Ingredient} auf {Ingredient_Value} anpassen"
]
},
{
"name": "SelectRecipeByFavoritsSelectorIntent",
"slots": [
{
"name": "Recipe",
"type": "LIST_OF_RECIPES"
}
],
"samples": [
"ich moechte {Recipe} aus meinen Favoriten auswaehlen",
"ich waehle den Favoriten {Recipe} aus"
]
},
{
"name": "AMAZON.PauseIntent",
"samples": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Optional<Response> handle(HandlerInput input) {

return input.getResponseBuilder()
.withSpeech(speechText)
.withSimpleCard("Rezeptauswahl", speechText)
.withSimpleCard("Favoritenauswahl", speechText)
.withShouldEndSession(false).build();


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public boolean canHandle(HandlerInput input) {
return input.matches(intentName("SelectRecipeByFavoritsStartIntent"));
}

@SuppressWarnings("unchecked")
@Override
public Optional<Response> handle(HandlerInput input) {
CookingBook cookingBook = new CookingBook();
Expand Down

0 comments on commit dafed84

Please sign in to comment.