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; }
internal CommitCommentItemViewModel(GitHubSharp.Models.CommentModel comment) { Avatar = new GitHubAvatar(comment?.User?.AvatarUrl); Actor = comment?.User?.Login; Body = comment.BodyHtml; UtcCreatedAt = comment.CreatedAt.UtcDateTime; }