예제 #1
0
        public CommentNodeViewModel(ICommentResult result)
        {
            if (result == null)
            {
                return;
            }

            Text      = result.Text;
            UserImage = result.User.Avatar;
            if (string.IsNullOrEmpty(UserImage))
            {
                UserImage = ResourcesHelper.GetIconPath("profile.png");
            }
            UserName = result.User.DisplayName;
        }