public TwitchCommentViewModel(TwitchSitePlugin.ITwitchComment 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; }
public TwitchCommentViewModel(TwitchSitePlugin.ITwitchComment comment, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus, IOptions options) : this(metadata, methods, connectionStatus, options) { _message = comment; if (comment.IsDisplayNameSame) { _nameItems = Common.MessagePartFactory.CreateMessageItems(comment.UserName); } else { var nameItems = new List <IMessagePart> { Common.MessagePartFactory.CreateMessageText(comment.DisplayName), Common.MessagePartFactory.CreateMessageText(" (" + comment.UserName + ")") }; _nameItems = nameItems; } MessageItems = comment.CommentItems; Thumbnail = comment.UserIcon; Id = comment.Id.ToString(); PostTime = comment.PostTime; }
public TwitchCommentViewModel(TwitchSitePlugin.ITwitchDisconnected disconnected, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus, IOptions options) : this(metadata, methods, connectionStatus, options) { _message = disconnected; MessageItems = disconnected.CommentItems; }
public TwitchCommentViewModel(TwitchSitePlugin.ITwitchDisconnected disconnected, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus, IOptions options) : this(metadata, methods, connectionStatus, options) { _message = disconnected; MessageItems = Common.MessagePartFactory.CreateMessageItems(disconnected.Text); }