2020-11-10 09:13:45 +00:00
|
|
|
|
using Flow.Launcher.Plugin;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Flow.Launcher.ViewModel
|
|
|
|
|
|
{
|
2021-02-15 18:12:28 +00:00
|
|
|
|
public struct ResultsForUpdate
|
2020-11-10 09:13:45 +00:00
|
|
|
|
{
|
2021-06-11 04:40:07 +00:00
|
|
|
|
public IReadOnlyList<Result> Results { get; }
|
2020-11-10 09:13:45 +00:00
|
|
|
|
|
|
|
|
|
|
public PluginMetadata Metadata { get; }
|
|
|
|
|
|
public string ID { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public Query Query { get; }
|
|
|
|
|
|
public CancellationToken Token { get; }
|
|
|
|
|
|
|
2021-06-11 04:40:07 +00:00
|
|
|
|
public ResultsForUpdate(IReadOnlyList<Result> results, PluginMetadata metadata, Query query, CancellationToken token)
|
2020-11-10 09:13:45 +00:00
|
|
|
|
{
|
|
|
|
|
|
Results = results;
|
|
|
|
|
|
Metadata = metadata;
|
|
|
|
|
|
Query = query;
|
|
|
|
|
|
Token = token;
|
|
|
|
|
|
ID = metadata.ID;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|