예제 #1
0
        public void AddHotels(string hotelId)
        {
            var hotelDesReq = new HotelDesInfoReqEntity
            {
                SearchCandidate = new EntityModel.Proxy.CTripHotel.SearchCandidate {
                    HotelID = hotelId
                },
                Settings = new Settings
                {
                    PrimaryLangID = "zh-cn",
                    ExtendedNodes = new string[] { "HotelStaticInfo.GeoInfo",
                                                   "HotelStaticInfo.NearbyPOIs",
                                                   "HotelStaticInfo.TransportationInfos",
                                                   "HotelStaticInfo.Brand",
                                                   "HotelStaticInfo.Group",
                                                   "HotelStaticInfo.Ratings",
                                                   "HotelStaticInfo.Policies",
                                                   "HotelStaticInfo.NormalizedPolicies.ChildAndExtraBedPolicy",
                                                   "HotelStaticInfo.AcceptedCreditCards",
                                                   "HotelStaticInfo.ImportantNotices",
                                                   "HotelStaticInfo.Facilities",
                                                   "HotelStaticInfo.Pictures",
                                                   "HotelStaticInfo.Descriptions",
                                                   "HotelStaticInfo.Themes",
                                                   "HotelStaticInfo.ContactInfo",
                                                   "HotelStaticInfo.ArrivalTimeLimitInfo",
                                                   "HotelStaticInfo.DepartureTimeLimitInfo",
                                                   "HotelStaticInfo.HotelTags.IsBookable" }
                }
            };

            var resultObj = HotelApiAccess.QueryObj <HotelDesInfoReqEntity, HotelDesInfoResEntity>(hotelDesReq);
            //_cTripHotelDesDal.AddHotelDesToSolr();
        }
예제 #2
0
 public string QueryStr(HotelDesInfoReqEntity req)
 {
     return(HotelApiAccess.QueryStr(req));
 }