internal IssueCommentItemViewModel(GitHubSharp.Models.IssueCommentModel comment)
 {
     Comment   = comment.BodyHtml;
     Actor     = comment.With(x => x.User).With(x => x.Login);
     AvatarUrl = new GitHubAvatar(comment.With(x => x.User).With(x => x.AvatarUrl));
     CreatedAt = comment.CreatedAt;
 }
Exemple #2
0
 internal IssueCommentItemViewModel(GitHubSharp.Models.IssueCommentModel comment)
 {
     Comment   = comment.BodyHtml;
     Actor     = comment?.User?.Login;
     AvatarUrl = new GitHubAvatar(comment?.User?.AvatarUrl);
     CreatedAt = comment.CreatedAt;
 }