Exemple #1
0
        public IstandardComment standarizedComment(root rootComment)
        {
            IstandardComment strdMessage = new IstandardComment();

            strdMessage.MessageOrigin = rootComment.Issue_event_type_name.Split(':')[0];
            strdMessage.Action        = rootComment.Issue_event_type_name.Split('_')[1];
            strdMessage.Created       = rootComment.Comment.created;
            strdMessage.Author        = rootComment.Comment.author.name + "_" + rootComment.Comment.author.emailAddress;
            strdMessage.Content       = rootComment.Comment.body;

            return(strdMessage);
        }
Exemple #2
0
        public CommentEasyAccess ConvertCommentEasyAccess(IstandardComment stdmsg)
        {
            CommentEasyAccess cmtEA = new CommentEasyAccess();

            string[] c = stdmsg.Author.Split('_');

            cmtEA.Id          = "b3e7f2d9-67c9-43ff-94d1-c133fa7bb26a";
            cmtEA.ProjectId   = "636935113624010709";
            cmtEA.Date        = stdmsg.Created;
            cmtEA.authorName  = c[0];
            cmtEA.AuthorEmail = c[1];
            cmtEA.Content     = stdmsg.Content;

            return(cmtEA);
        }