public static IList <ELongHotelLandMarkAdapter> GetHotelLandMarkList(string hotelId)
        {
            IList <ELongHotelLandMarkAdapter> list = new List <ELongHotelLandMarkAdapter>();
            string      path = string.Format(PATH_HOTEL_ID_CN, hotelId);
            XmlDocument doc  = GetDoc(path);

            XmlNamespaceManager xnm        = GetXnmQ1();
            XmlNodeList         nodesImage = doc.SelectNodes("q1:HotelDetail/q1:Landmarks/q1:HotelLandMark", xnm);

            foreach (XmlNode nodeImage in nodesImage)
            {
                ELongHotelLandMarkAdapter adapter = new ELongHotelLandMarkAdapter();
                adapter.from(nodeImage, xnm, "q1:", "");
                adapter.HotelID = hotelId;
                list.Add(adapter);
            }
            return(list);
        }
        public static IList<ELongHotelLandMarkAdapter> GetHotelLandMarkList(string hotelId)
        {
            IList<ELongHotelLandMarkAdapter> list = new List<ELongHotelLandMarkAdapter>();
            string path = string.Format(PATH_HOTEL_ID_CN, hotelId);
            XmlDocument doc = GetDoc(path);

            XmlNamespaceManager xnm = GetXnmQ1();
            XmlNodeList nodesImage = doc.SelectNodes("q1:HotelDetail/q1:Landmarks/q1:HotelLandMark", xnm);
            foreach (XmlNode nodeImage in nodesImage)
            {
                ELongHotelLandMarkAdapter adapter = new ELongHotelLandMarkAdapter();
                adapter.from(nodeImage, xnm, "q1:", "");
                adapter.HotelID = hotelId;
                list.Add(adapter);
            }
            return list;
        }
Beispiel #3
0
 public void from(ELongHotelLandMarkAdapter adapter)
 {
     this.hotelFk = adapter.HotelID;
     this.landmarkId = adapter.LandMarkID;
     this.landmarkName = adapter.LandMarkName;
     this.landmarkNameEn = adapter.LandMarkNameEn;
 }