private MapDetailsDO GetMapDetails(ZomatoRestaurant zomatoRestaurant) { MapDetailsDO mapDetailsDO = new MapDetailsDO(); mapDetailsDO.latitude = zomatoRestaurant.location.latitude; mapDetailsDO.longitude = zomatoRestaurant.location.longitude; mapDetailsDO.markerLabel = zomatoRestaurant.user_rating.aggregate_rating; return(mapDetailsDO); }
private RestaurantDO GetRestaurantDO(ZomatoRestaurant zomatoRestaurant) { RestaurantDO restaurant = new RestaurantDO { Address = new AddressDO() { Area = zomatoRestaurant.location.locality, City = zomatoRestaurant.location.city, Street1 = zomatoRestaurant.location.address }, CostForTwo = zomatoRestaurant.average_cost_for_two, Cuisines = zomatoRestaurant.cuisines, Name = zomatoRestaurant.name, Ratings = zomatoRestaurant.user_rating.aggregate_rating, ImagePath = zomatoRestaurant.thumb, VotesCount = zomatoRestaurant.user_rating.votes }; return(restaurant); }