mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
31 lines
941 B
C#
31 lines
941 B
C#
using System;
|
|
using Flow.Launcher.Plugin;
|
|
|
|
namespace Flow.Launcher.Storage;
|
|
|
|
public class LastOpenedHistoryItem
|
|
{
|
|
public string Title { get; set; } = string.Empty;
|
|
public string SubTitle { get; set; } = string.Empty;
|
|
public string PluginID { get; set; } = string.Empty;
|
|
public string Query { get; set; } = string.Empty;
|
|
public string RecordKey { get; set; } = string.Empty;
|
|
public DateTime ExecutedDateTime { get; set; }
|
|
|
|
public bool Equals(Result r)
|
|
{
|
|
if (string.IsNullOrEmpty(RecordKey) || string.IsNullOrEmpty(r.RecordKey))
|
|
{
|
|
return Title == r.Title
|
|
&& SubTitle == r.SubTitle
|
|
&& PluginID == r.PluginID
|
|
&& Query == r.OriginQuery.RawQuery;
|
|
}
|
|
else
|
|
{
|
|
return RecordKey == r.RecordKey
|
|
&& PluginID == r.PluginID
|
|
&& Query == r.OriginQuery.RawQuery;
|
|
}
|
|
}
|
|
}
|