Exemple #1
0
        private List <OfferOutboundEntry> buildFriendsOutboundResponsesEntryList(XmlDocument x)
        {
            XmlNodeList offerNodes = x.SelectNodes("/response/user");

            if (offerNodes.Count > 0)
            {
                List <OfferOutboundEntry> offerList = new List <OfferOutboundEntry>();
                foreach (XmlNode offerNode in offerNodes)
                {
                    OfferOutboundEntry offer = new OfferOutboundEntry();
                    XmlUtils.UseNode(offerNode);
                    offer.UserId   = XmlUtils.Int("uid");
                    offer.UserName = XmlUtils.String("name");
                    offer.Photo    = XmlUtils.String("photo");
                    offer.Viewed   = XmlUtils.Bool("viewed");
                    offer.Age      = XmlUtils.Int("age");
                    offer.CityId   = XmlUtils.Int("city_id");
                    offer.CityName = XmlUtils.String("city_name");

                    offerList.Add(offer);
                }
                return(offerList);
            }
            return(null);
        }
Exemple #2
0
        private List<OfferOutboundEntry> buildFriendsOutboundResponsesEntryList(XmlDocument x)
        {
            XmlNodeList offerNodes = x.SelectNodes("/response/user");
            if (offerNodes.Count > 0)
            {
                List<OfferOutboundEntry> offerList = new List<OfferOutboundEntry>();
                foreach (XmlNode offerNode in offerNodes)
                {
                        OfferOutboundEntry offer = new OfferOutboundEntry();
                        XmlUtils.UseNode(offerNode);
                        offer.UserId = XmlUtils.Int("uid");
                        offer.UserName = XmlUtils.String("name");
                        offer.Photo = XmlUtils.String("photo");
                        offer.Viewed = XmlUtils.Bool("viewed");
                        offer.Age = XmlUtils.Int("age");
                        offer.CityId = XmlUtils.Int("city_id");
                        offer.CityName = XmlUtils.String("city_name");

                        offerList.Add(offer);
                }
                return offerList;
            }
            return null;
        }