private AdferoFeedList ListFeedsForFeed(int offset, int limit, string[] properties, string[] fields)
        {
            string uri = this.GetUri(null, null, "xml", properties, fields, offset, limit);

            uri = string.Format("http://{0}:{1}@{2}", this.credentials.PublicKey, this.credentials.SecretKey, uri.Replace("http://", string.Empty));
            string xml = AdferoHelpers.GetXmlFromUri(uri);

            AdferoFeedList feeds = this.ListFeedsFromXmlString(xml);

            feeds.Limit  = limit;
            feeds.Offset = offset;

            return(feeds);
        }
        private AdferoFeedList ListFeedsFromXmlString(string xml)
        {
            XmlDocument doc = new XmlDocument();

            doc.LoadXml(xml);
            int            totalCount = int.Parse(doc.SelectSingleNode("//feeds").Attributes["totalCount"].Value);
            AdferoFeedList feedsList  = new AdferoFeedList();

            feedsList.TotalCount = totalCount;

            foreach (XmlNode n in doc.SelectNodes("//feeds/feed"))
            {
                foreach (XmlNode na in n.SelectNodes("id"))
                {
                    AdferoFeedListItem feed = new AdferoFeedListItem();
                    feed.Id = int.Parse(na.InnerText);
                    feedsList.Items.Add(feed);
                }
            }

            return(feedsList);
        }
        private AdferoFeedList ListFeedsFromXmlString(string xml)
        {
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(xml);
            int totalCount = int.Parse(doc.SelectSingleNode("//feeds").Attributes["totalCount"].Value);
            AdferoFeedList feedsList = new AdferoFeedList();
            feedsList.TotalCount = totalCount;

            foreach (XmlNode n in doc.SelectNodes("//feeds/feed"))
            {
                foreach (XmlNode na in n.SelectNodes("id"))
                {
                    AdferoFeedListItem feed = new AdferoFeedListItem();
                    feed.Id = int.Parse(na.InnerText);
                    feedsList.Items.Add(feed);
                }
            }

            return feedsList;
        }