public McvMirrativCommentViewModel(MirrativSitePlugin.IMirrativComment comment, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus, IOptions options) : this(metadata, methods, connectionStatus, options) { _message = comment; _nameItems = MessagePartFactory.CreateMessageItems(comment.UserName); MessageItems = MessagePartFactory.CreateMessageItems(comment.Text); Thumbnail = null; Id = comment.Id; PostTime = comment.PostedAt.ToString("HH:mm:ss"); }
public McvMirrativCommentViewModel(MirrativSitePlugin.IMirrativComment 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 = UnixTimeStampToDateTime(comment.PostedAt / 1000).ToString("HH:mm:ss"); PostTime = comment.PostTime; }