Пример #1
0
        private void AskForRestaurantChallenge(RestaurantChallenge restaurantChallenge)
        {
            if (restaurantChallenge == null)
            {
                return;
            }
            _toFetch.Add(new FetchingObject()
            {
                PrimaryKey = restaurantChallenge.ChallengeId,
                Type       = "RestaurantChallenge"
            });

            AskForRestaurant(restaurantChallenge.Restaurant);
        }
Пример #2
0
        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);
        }