Exemplo n.º 1
0
        public static IList <ElongHotelSurroundingRestaurantAdapter> GetHotelSurroundingRestaurantList(string hotelId)
        {
            IList <ElongHotelSurroundingRestaurantAdapter> list = new List <ElongHotelSurroundingRestaurantAdapter>();
            string      path = string.Format(PATH_HOTEL_ID_CN, hotelId);
            XmlDocument doc  = GetDoc(path);

            XmlNamespaceManager xnm   = GetXnmQ1();
            XmlNodeList         nodes = doc.SelectNodes("q1:HotelDetail/q1:surroundingRestaurants/q1:surroundingRestaurant", xnm);

            foreach (XmlNode node in nodes)
            {
                ElongHotelSurroundingRestaurantAdapter adapter = new ElongHotelSurroundingRestaurantAdapter();
                adapter.from(node, xnm, "q1:", "");
                adapter.exHotelId = hotelId;
                list.Add(adapter);
            }
            return(list);
        }
Exemplo n.º 2
0
        public static IList<ElongHotelSurroundingRestaurantAdapter> GetHotelSurroundingRestaurantList(string hotelId)
        {
            IList<ElongHotelSurroundingRestaurantAdapter> list = new List<ElongHotelSurroundingRestaurantAdapter>();
            string path = string.Format(PATH_HOTEL_ID_CN, hotelId);
            XmlDocument doc = GetDoc(path);

            XmlNamespaceManager xnm = GetXnmQ1();
            XmlNodeList nodes = doc.SelectNodes("q1:HotelDetail/q1:surroundingRestaurants/q1:surroundingRestaurant", xnm);
            foreach (XmlNode node in nodes)
            {
                ElongHotelSurroundingRestaurantAdapter adapter = new ElongHotelSurroundingRestaurantAdapter();
                adapter.from(node, xnm, "q1:", "");
                adapter.exHotelId = hotelId;
                list.Add(adapter);
            }
            return list;
        }
Exemplo n.º 3
0
 public void from(ElongHotelSurroundingRestaurantAdapter adapter)
 {
     this.fromBase(adapter);
     this.descp = adapter.Description;
 }