public TwicasCommentViewModel(TwicasSitePlugin.ITwicasComment comment, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus) : this(metadata, methods, connectionStatus) { _message = comment; _nameItems = comment.NameItems; MessageItems = comment.CommentItems; Thumbnail = comment.UserIcon; Id = comment.Id?.ToString(); PostTime = comment.PostTime; }
public TwicasCommentViewModel(TwicasSitePlugin.ITwicasItem item, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus) : this(metadata, methods, connectionStatus) { _message = item; _nameItems = item.NameItems; MessageItems = item.CommentItems; Thumbnail = item.UserIcon; Id = null; PostTime = null;// comment.PostTime; Info = item.ItemName; }
public TwicasCommentViewModel(TwicasSitePlugin.ITwicasDisconnected disconnected, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus) : this(metadata, methods, connectionStatus) { _message = disconnected; MessageItems = disconnected.CommentItems; }
public TwicasCommentViewModel(TwicasSitePlugin.ITwicasDisconnected disconnected, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus) : this(metadata, methods, connectionStatus) { _message = disconnected; MessageItems = Common.MessagePartFactory.CreateMessageItems(disconnected.Text); }