Beispiel #1
0
        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;
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 public TwicasCommentViewModel(TwicasSitePlugin.ITwicasDisconnected disconnected, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus)
     : this(metadata, methods, connectionStatus)
 {
     _message     = disconnected;
     MessageItems = disconnected.CommentItems;
 }
Beispiel #4
0
 public TwicasCommentViewModel(TwicasSitePlugin.ITwicasDisconnected disconnected, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus)
     : this(metadata, methods, connectionStatus)
 {
     _message     = disconnected;
     MessageItems = Common.MessagePartFactory.CreateMessageItems(disconnected.Text);
 }