private List <OfferEntry> buildFriendsEntryList(XmlDocument x) { XmlNodeList msgsNodes = x.SelectNodes("/response/offer"); if (msgsNodes.Count > 0) { List <OfferEntry> offerList = new List <OfferEntry>(); foreach (XmlNode offerNode in msgsNodes) { OfferEntry offer = new OfferEntry(); XmlUtils.UseNode(offerNode); offer.UserId = XmlUtils.Int("uid"); offer.Message = XmlUtils.String("message"); offer.Active = XmlUtils.Bool("active"); offerList.Add(offer); } return(offerList); } return(null); }
private List<OfferEntry> buildFriendsEntryList(XmlDocument x) { XmlNodeList msgsNodes = x.SelectNodes("/response/offer"); if (msgsNodes.Count >0) { List<OfferEntry> offerList = new List<OfferEntry>(); foreach (XmlNode offerNode in msgsNodes) { OfferEntry offer = new OfferEntry(); XmlUtils.UseNode(offerNode); offer.UserId = XmlUtils.Int("uid"); offer.Message = XmlUtils.String("message"); offer.Active = XmlUtils.Bool("active"); offerList.Add(offer); } return offerList; } return null; }