예제 #1
0
        public PeriscopeCommentViewModel(PeriscopeSitePlugin.IPeriscopeComment comment, IMessageMetadata metadata, IMessageMethods methods, IConnectionStatus connectionStatus, IOptions options)
            : this(metadata, methods, connectionStatus, options)
        {
            _message = comment;

            _nameItems   = MessagePartFactory.CreateMessageItems(comment.DisplayName);
            MessageItems = MessagePartFactory.CreateMessageItems(comment.Text);
            Thumbnail    = null;
            Id           = comment.Id;
            PostTime     = comment.PostedAt.HasValue ? comment.PostedAt.Value.ToString("HH:mm:ss") : (string)null;
        }
예제 #2
0
        public PeriscopeCommentViewModel(PeriscopeSitePlugin.IPeriscopeComment 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;
        }