private void TranslateCCC(CreativeCookingChallenge creativeCookingChallenge, string language) { if (creativeCookingChallenge == null) { return; } var specs = _data[$"{creativeCookingChallenge.ChallengeId}CreativeCookingChallenge"]; foreach (Ingredient ingredient in creativeCookingChallenge.Ingredients) { TranslateIngredient(ingredient, language); } if (specs.ContainsKey("Name")) { creativeCookingChallenge.Name = specs["Name"]; } }
private void AskForCCC(CreativeCookingChallenge creativeCookingChallenge) { if (creativeCookingChallenge == null) { return; } _toFetch.Add(new FetchingObject() { PrimaryKey = creativeCookingChallenge.ChallengeId, Type = "CreativeCookingChallenge" }); AskForRecipe(creativeCookingChallenge.Recipe); foreach (var ingredient in creativeCookingChallenge.Ingredients) { AskForIngredient(ingredient); } }