예제 #1
0
 internal CommitCommentItemViewModel(GitHubSharp.Models.CommentModel comment)
 {
     Avatar       = new GitHubAvatar(comment.With(y => y.User).With(y => y.AvatarUrl));
     Actor        = comment.With(x => x.User).With(x => x.Login);
     Body         = comment.BodyHtml;
     UtcCreatedAt = comment.CreatedAt.UtcDateTime;
 }
예제 #2
0
 internal CommitCommentItemViewModel(GitHubSharp.Models.CommentModel comment)
 {
     Avatar       = new GitHubAvatar(comment?.User?.AvatarUrl);
     Actor        = comment?.User?.Login;
     Body         = comment.BodyHtml;
     UtcCreatedAt = comment.CreatedAt.UtcDateTime;
 }