private void AskForRestaurantChallenge(RestaurantChallenge restaurantChallenge) { if (restaurantChallenge == null) { return; } _toFetch.Add(new FetchingObject() { PrimaryKey = restaurantChallenge.ChallengeId, Type = "RestaurantChallenge" }); AskForRestaurant(restaurantChallenge.Restaurant); }
private void TranslateRestaurantChallenge(RestaurantChallenge restaurantChallenge, string language) { if (restaurantChallenge == null) { return; } var specs = _data[$"{restaurantChallenge.ChallengeId}RestaurantChallenge"]; if (specs.ContainsKey("Name")) { restaurantChallenge.Name = specs["Name"]; } TranslateRestaurant(restaurantChallenge.Restaurant, language); }