1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
namespace KeePassRPC.Models.DataExchange
{
public struct MatchAccuracy
{
// Best = Non-URL match (i.e. we matched by UUID instead)
// Best = Regex match (it is impossible for us to infer how
// accurate a regex match is in comparison with other classes
// of match so we always treat it as the best possible match
// even if the regex itself is very loose)
// Best = Same URL including query string
// Close = Same URL excluding query string
// HostnameAndPort = Same hostname and port
// HostnameExcludingPort = Same hostname (domain + subdomains)
// Domain = Same domain
// None = No match (e.g. when we are being asked to return all entries)
public static readonly int Best = (int)MatchAccuracyEnum.Best;
public static readonly int Close = (int)MatchAccuracyEnum.Close;
public static readonly int HostnameAndPort = (int)MatchAccuracyEnum.HostnameAndPort;
public static readonly int HostnameExcludingPort = (int)MatchAccuracyEnum.HostnameExcludingPort;
public static readonly int Domain = (int)MatchAccuracyEnum.Domain;
public static readonly int None = (int)MatchAccuracyEnum.None;
}
}
|