Esempio n. 1
0
        private void AskForRecipeChallenge(RecipeChallenge recipeChallenge)
        {
            if (recipeChallenge == null)
            {
                return;
            }
            _toFetch.Add(new FetchingObject()
            {
                PrimaryKey = recipeChallenge.ChallengeId,
                Type       = "RecipeChallenge"
            });

            AskForRecipe(recipeChallenge.Recipe);
        }
Esempio n. 2
0
        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);
        }