GetAttributes() public method

public GetAttributes ( Newtonsoft.Json.Linq.JObject feedsJObject ) : void
feedsJObject Newtonsoft.Json.Linq.JObject
return void
        public void GetAttributes(JObject feedsJObject)
        {
            if (feedsJObject["id"] != null)
            {
                JWZXFeeds j = new JWZXFeeds();
                j.GetAttributes(feedsJObject);
                contentbase = j;
            }
            else
                content = feedsJObject["content"].ToString();

            //try
            //{
            //    JWZXFeeds j = new JWZXFeeds();
            //    j.GetAttributes(feedsJObject);
            //    contentbase = j;
            //}
            //catch (Exception)
            //{
            //    content = feedsJObject["content"].ToString();
            //}
        }
Exemplo n.º 2
0
        public void GetAttributes(JObject feedsJObject)
        {
            if (feedsJObject["id"] != null)
            {
                JWZXFeeds j = new JWZXFeeds();
                j.GetAttributes(feedsJObject);
                contentbase = j;
            }
            else
            {
                content = feedsJObject["content"].ToString();
            }

            //try
            //{
            //    JWZXFeeds j = new JWZXFeeds();
            //    j.GetAttributes(feedsJObject);
            //    contentbase = j;
            //}
            //catch (Exception)
            //{
            //    content = feedsJObject["content"].ToString();
            //}
        }