Exemplo n.º 1
0
        public ShowRoomCommentViewModel(ShowRoomSitePlugin.IShowRoomComment comment, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus, IOptions options)
            : this(metadata, methods, connectionStatus, options)
        {
            _message = comment;

            _nameItems   = Common.MessagePartFactory.CreateMessageItems(comment.UserName);
            MessageItems = Common.MessagePartFactory.CreateMessageItems(comment.Text);
            Thumbnail    = null;
            Id           = null;
            PostTime     = comment.PostedAt.ToString("HH:mm:ss");
        }
        public ShowRoomCommentViewModel(ShowRoomSitePlugin.IShowRoomComment comment, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus, IOptions options)
            : this(metadata, methods, connectionStatus, options)
        {
            _message = comment;

            _nameItems   = comment.NameItems;
            MessageItems = comment.CommentItems;
            Thumbnail    = comment.UserIcon;
            Id           = comment.Id.ToString();
            PostTime     = comment.PostTime;
        }