コード例 #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;
        }
コード例 #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);
        }