Esempio n. 1
0
        public post(dynamic json)
        {
            jsonObj = json;

            if (jsonObj != null)
            {
                id           = jsonObj.id;
                story        = jsonObj.story;
                message      = jsonObj.message;
                created_time = jsonObj.created_time;
                link         = jsonObj.link;

                if (jsonObj.likes != null)
                {
                    likes = new likes(jsonObj.likes);
                }

                if (jsonObj.attachments != null)
                {
                    attachments = new attachments(jsonObj.attachments);
                }

                if (jsonObj.comments != null)
                {
                    comments = new comments(jsonObj.comments);
                }
            }
        }
        public postss(dynamic json)
        {
            jsonObj  = json;
            id       = jsonObj.id;
            name     = jsonObj.name;
            birthday = jsonObj.birthday;

            if (jsonObj.likes != null)
            {
                likes = new likes(jsonObj.likes);
            }
        }