mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
22 lines
650 B
C#
22 lines
650 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Flow.Launcher.Plugin.BrowserBookmark.Models;
|
|
|
|
// Source may be important in the future
|
|
public record Bookmark(string Name, string Url, string Source = "")
|
|
{
|
|
public override int GetHashCode()
|
|
{
|
|
var hashName = Name?.GetHashCode() ?? 0;
|
|
var hashUrl = Url?.GetHashCode() ?? 0;
|
|
return hashName ^ hashUrl;
|
|
}
|
|
|
|
public virtual bool Equals(Bookmark other)
|
|
{
|
|
return other != null && Name == other.Name && Url == other.Url;
|
|
}
|
|
|
|
public List<CustomBrowser> CustomBrowsers { get; set; } = new();
|
|
public string FaviconPath { get; set; } = string.Empty;
|
|
}
|