Example #1
0
 internal IssueCommentItemViewModel(Octokit.IssueComment comment)
 {
     Comment   = comment.Body;
     Actor     = comment.User.Name;
     AvatarUrl = comment.User.AvatarUrl;
     CreatedAt = comment.CreatedAt;
 }
Example #2
0
        public static MyIssues.Models.IssueComment Map(this Octokit.IssueComment issue)
        {
            var i = new Models.IssueComment
            {
                Author    = issue.User.Login,
                Body      = issue.Body,
                CreatedAt = issue.CreatedAt,
                Id        = issue.Id,
            };

            i.FillReactions(issue.Reactions);
            return(i);
        }