Skip to content

Commit

Permalink
#28 29 fixed merging errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Plugsocket committed Dec 10, 2018
2 parents 32b99da + 6dedc82 commit 167b023
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 23 deletions.
103 changes: 97 additions & 6 deletions models/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@
]
},
{
"name": "SelectRecipeByFavoritsIntent",
"slots": [],
"name": "SelectRecipeByFavoritsStartIntent",
"slots": [
{
"name": "FavoritRecipe",
"type": "FavoritRecipes"
}
],
"samples": [
"ich moechte meine Favoriten vorlesen lassen",
"welche Favoriten kann ich waehlen",
Expand Down Expand Up @@ -83,7 +88,7 @@
},
{
"name": "SetNumberOfPeopleIntent",
"slots": [
"slots": [
{
"name": "Number",
"type": "NUMBER_OF_PEOPLE"
Expand All @@ -95,12 +100,26 @@
"Sage mir das Rezept fuer {Number} Personen",
"Sage mir das Rezept fuer {Number} Person",
"Ich möchte das Rezept fuer {Number} alleine kochen"
]
},
{
"name": "SaveRecipeToFavoriteIntent",
"slots": [
{
"name": "FavoritRecipe",
"type": "FavoritRecipes"
}
],
"samples": [
"Ich moechte ein neues Rezept zu den Favoriten hinzufuegen",
"Neuen Favoriten anlegen"
]
},
{
"name": "TellRecipeStepsIntent",
"slots": [],
"samples": [
"weiter",
"kannst du mir die Rezeptschritte sagen",
"welche Schritte muss ich befolge",
"was fuer Schritte sind wichtig"
Expand All @@ -116,8 +135,29 @@
]
},
{
"name": "SelectRecipeByFavoritsIntentHandlerSelector",
"slots": [],
"name": "ModifyRecipeByUnitsIntent",
"slots": [
{
"name": "Ingredient",
"type": "AMAZON.NUMBER",
"samples": [
"Bitte sage mir die neue Menge dieser Zutat"
]
}
],
"samples": [
"{Ingredient} anpassen",
"kann ich ein Rezept nach Zutaten aendern"
]
},
{
"name": "SelectRecipeByFavoritsSelectorIntent",
"slots": [
{
"name": "FavoritRecipe",
"type": "FavoritRecipes"
}
],
"samples": [
"ich moechte einen Favoriten auswaehlen",
"ich waehle einen Favoriten aus der Liste",
Expand Down Expand Up @@ -212,9 +252,60 @@
"value": "sechs"
}
}
]
},
{
"name": "FavoritRecipes",
"values": [
{
"name": {
"value": "schnitzel"
}
}
]
}
]
},
"dialog": {
"intents": [
{
"name": "ModifyRecipeByUnitsIntent",
"confirmationRequired": false,
"prompts": {},
"slots": [
{
"name": "Ingredient",
"type": "AMAZON.NUMBER",
"confirmationRequired": true,
"elicitationRequired": true,
"prompts": {
"confirmation": "Confirm.Slot.170099915505.1240512610375",
"elicitation": "Elicit.Slot.170099915505.1240512610375"
}
}
]
}
]
}
},
"prompts": [
{
"id": "Elicit.Slot.170099915505.1240512610375",
"variations": [
{
"type": "PlainText",
"value": "Bitte sage mir die neue Menge dieser Zutat"
}
]
},
{
"id": "Confirm.Slot.170099915505.1240512610375",
"variations": [
{
"type": "PlainText",
"value": "Ist {Ingredient} richtig?"
}
]
}
]
}
}
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
<artifactId>mockito-core</artifactId>
<version>2.23.4</version>
</dependency>
<dependency>
<groupId>com.amazon.alexa</groupId>
<artifactId>alexa-skills-kit</artifactId>
<version>1.8.1</version>
</dependency>
</dependencies>

<build>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<mxfile modified="2018-12-09T23:35:58.022Z" host="www.draw.io" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36" version="9.5.9" etag="fvp_in4YlbGoSGNIhrJg" type="device"><diagram id="bcb13173-9494-129e-c73b-83b3c3b45b11" name="Page-1">7Vtbk6I6EP41Vu150EoI4fI4Onur2lvtnK1z9jFKVGqRuIBz+/UnQAKEoEZFZ2bnzMMIHZJAf91fupswQJPV/fu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//8jZ0cwIcVP3YsHSimLaUziR7KMlNG6S5GVWLttLitU8icWLa3Wm7SOINk5GxPbBjHyzo8n2hlw40uK587QqLWdz4GtcM6UodtUrw3UI0Pbry9UcdWoG/tdWeSZHKS7vGsbbOk1i1+0csy+gh9+So/Brtva7Y7a37SY+oyLnH1DnbtIb+t13ssWd03AV8pzW8A/GVW1AGEDMyA6tnSB3QMdXWfjp/UnseXl9YfH6O1/</diagram></mxfile>
19 changes: 12 additions & 7 deletions src/main/java/verkocht/VerkochtStreamHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
import verkocht.handlers.LaunchRequestHandler;
import verkocht.handlers.ModifyRecipeByUnitsIntentHandler;
import verkocht.handlers.ModifyRecipeIntentHandler;
import verkocht.handlers.SaveRecipeToFavoriteIntentHandler;
import verkocht.handlers.SelectRecipeByCategoryIntentHandler;
import verkocht.handlers.SelectRecipeByFavoritsSelectorIntentHandler;
import verkocht.handlers.SelectRecipeByFavoritsStartIntentHandler;
import verkocht.handlers.SelectRecipeByNameInputRecipeIntentHandler;
import verkocht.handlers.SelectRecipeByNameStartIntentHandler;
Expand All @@ -40,23 +42,26 @@ public class VerkochtStreamHandler extends SkillStreamHandler {
private static Skill getSkill() {
return Skills.standard()
.addRequestHandlers(
new TellMeCategoriesIntentHandler(),
new CancelandStopIntentHandler(),
new FallbackIntentHandler(),
new HelpIntentHandler(),
new LaunchRequestHandler(),
new ModifyRecipeIntentHandler(),
new ModifyRecipeByUnitsIntentHandler(),
new SaveRecipeToFavoriteIntentHandler(),
new SelectRecipeByCategoryIntentHandler(),
new SelectRecipeByFavoritsSelectorIntentHandler(),
new SelectRecipeByFavoritsStartIntentHandler(),
new SelectRecipeByNameInputRecipeIntentHandler(),
new SelectRecipeByNameStartIntentHandler(),
new SelectRecipeIntentHandler(),
new SessionEndedRequestHandler(),
new SetFavoriteIntentHandler(),
new SetNumberOfPeopleIntentHandler(),
new TellRecipeStepsIntentHandler(),
new LaunchRequestHandler(),
new CancelandStopIntentHandler(),
new SessionEndedRequestHandler(),
new HelpIntentHandler(),
new FallbackIntentHandler())
.withSkillId("amzn1.ask.skill.5eb7a2b5-a62c-493e-8499-1a96b68b5c89").build();
new TellMeCategoriesIntentHandler())
// .withSkillId("amzn1.ask.skill.c5bc074f-b96e-4343-ba1e-393f8084fe94")
.build();
}

public VerkochtStreamHandler() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@
import com.amazon.ask.model.Response;
import com.amazon.ask.model.Slot;

public class SaveRecipeToFavoriteHandler implements RequestHandler {
public class SaveRecipeToFavoriteIntentHandler implements RequestHandler {

@Override
public boolean canHandle(HandlerInput input) {
return input.matches(intentName("SelectRecipeByFavoritsStartIntentHandler"));
return input.matches(intentName("SaveRecipeToFavoriteIntent"));
}

@SuppressWarnings("unchecked")
@Override
public Optional<Response> handle(HandlerInput input) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
*
*
*/
public class SelectRecipeByFavoritsIntentSelectorHandler implements RequestHandler {
public class SelectRecipeByFavoritsSelectorIntentHandler implements RequestHandler {

@Override
public boolean canHandle(HandlerInput input) {
return input.matches(intentName("SelectRecipeByFavoritsIntentSelectorHandler"));
return input.matches(intentName("SelectRecipeByFavoritsSelectorIntent"));
}

@Override
Expand Down

0 comments on commit 167b023

Please sign in to comment.