Ejemplo n.º 1
0
        public static CommentObject fromDynamic(dynamic comData)
        {
            CommentObject comment = new CommentObject()
            {
                Id = comData.id,
                Comment = comData.comment,
                Smiles = comData.smiles,
                Answer = AnswerObject.fromDynamic(comData.answer),
                User = UserObject.fromDynamicSlim(comData.user),
                CreatedWith = ApplicationRefObject.fromDynamic(comData.created_with),
                CreatedAt = comData.created_at
            };

            return comment;
        }
Ejemplo n.º 2
0
        public static CommentObject fromDynamic(dynamic comData)
        {
            CommentObject comment = new CommentObject()
            {
                Id          = comData.id,
                Comment     = comData.comment,
                Smiles      = comData.smiles,
                Answer      = AnswerObject.fromDynamic(comData.answer),
                User        = UserObject.fromDynamicSlim(comData.user),
                CreatedWith = ApplicationRefObject.fromDynamic(comData.created_with),
                CreatedAt   = comData.created_at
            };

            return(comment);
        }