Ejemplo n.º 1
0
        public comment(dynamic json)
        {
            jsonObj = json;

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

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

                if (jsonObj.target != null)
                {
                    target = new target(jsonObj.target);
                }
            }
        }
Ejemplo n.º 2
0
        public attachment(dynamic json)
        {
            jsonObj = json;

            if (jsonObj != null)
            {
                description = jsonObj.description;
                title       = jsonObj.title;
                type        = jsonObj.type;
                url         = jsonObj.url;

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

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