private void AskForRecipeChallenge(RecipeChallenge recipeChallenge) { if (recipeChallenge == null) { return; } _toFetch.Add(new FetchingObject() { PrimaryKey = recipeChallenge.ChallengeId, Type = "RecipeChallenge" }); AskForRecipe(recipeChallenge.Recipe); }
private void TranslateRecipeChallenge(RecipeChallenge recipeChallenge, string language) { if (recipeChallenge == null) { return; } var specs = _data[$"{recipeChallenge.ChallengeId}RecipeChallenge"]; if (specs.ContainsKey("Name")) { recipeChallenge.Name = specs["Name"]; } TranslateRecipe(recipeChallenge.Recipe, language); }