internal IssueCommentItemViewModel(Octokit.IssueComment comment) { Comment = comment.Body; Actor = comment.User.Name; AvatarUrl = comment.User.AvatarUrl; CreatedAt = comment.CreatedAt; }
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); }