2021-09-14 18:18:41 +02:00
|
|
|
|
namespace Flowframes.Data
|
|
|
|
|
|
{
|
|
|
|
|
|
class QueryInfo
|
|
|
|
|
|
{
|
2025-12-20 23:13:26 +01:00
|
|
|
|
public string Path;
|
|
|
|
|
|
public long SizeBytes;
|
|
|
|
|
|
public string Command = "";
|
2021-09-14 18:18:41 +02:00
|
|
|
|
|
2025-12-20 23:13:26 +01:00
|
|
|
|
public QueryInfo(string path, long filesize = 0, string cmd = "")
|
2021-09-14 18:18:41 +02:00
|
|
|
|
{
|
2025-12-20 23:13:26 +01:00
|
|
|
|
Path = path;
|
|
|
|
|
|
SizeBytes = filesize;
|
|
|
|
|
|
Command = cmd;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override bool Equals(object obj)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (obj is QueryInfo other)
|
2025-12-21 18:06:54 +01:00
|
|
|
|
return Path == other.Path && SizeBytes == other.SizeBytes && Command == other.Command;
|
2025-12-20 23:13:26 +01:00
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override int GetHashCode()
|
|
|
|
|
|
{
|
|
|
|
|
|
unchecked
|
|
|
|
|
|
{
|
|
|
|
|
|
int hash = 17;
|
|
|
|
|
|
hash = hash * 31 + (Path?.GetHashCode() ?? 0);
|
|
|
|
|
|
hash = hash * 31 + SizeBytes.GetHashCode();
|
2025-12-21 18:06:54 +01:00
|
|
|
|
hash = hash * 31 + (Command?.GetHashCode() ?? 0);
|
2025-12-20 23:13:26 +01:00
|
|
|
|
return hash;
|
|
|
|
|
|
}
|
2021-09-14 18:18:41 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|