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; }
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; }