Exemplo 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);
        }
Exemplo n.º 2
0
        public static AnswerObject fromDynamic(dynamic ansData)
        {
            AnswerObject answer = new AnswerObject()
            {
                Id = ansData.id,
                Answer = ansData.answer,
                CommentCount = ansData.comment_count,
                SmileCount = ansData.smile_count,
                Answerer = UserObject.fromDynamicSlim(ansData.user),
                Question = QuestionObject.fromDynamic(ansData.question),
                CreatedWith = ApplicationRefObject.fromDynamic(ansData.created_with),
                CreatedAt = ansData.created_at
            };

            return answer;
        }
Exemplo n.º 3
0
        public static AnswerObject fromDynamic(dynamic ansData)
        {
            AnswerObject answer = new AnswerObject()
            {
                Id           = ansData.id,
                Answer       = ansData.answer,
                CommentCount = ansData.comment_count,
                SmileCount   = ansData.smile_count,
                Answerer     = UserObject.fromDynamicSlim(ansData.user),
                Question     = QuestionObject.fromDynamic(ansData.question),
                CreatedWith  = ApplicationRefObject.fromDynamic(ansData.created_with),
                CreatedAt    = ansData.created_at
            };

            return(answer);
        }