mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-25 04:39:25 +01:00
35 lines
847 B
C#
35 lines
847 B
C#
namespace Flowframes.Data
|
|
{
|
|
class QueryInfo
|
|
{
|
|
public string Path;
|
|
public long SizeBytes;
|
|
public string Command = "";
|
|
|
|
public QueryInfo(string path, long filesize = 0, string cmd = "")
|
|
{
|
|
Path = path;
|
|
SizeBytes = filesize;
|
|
Command = cmd;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (obj is QueryInfo other)
|
|
return Path == other.Path && SizeBytes == other.SizeBytes;
|
|
return false;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
unchecked
|
|
{
|
|
int hash = 17;
|
|
hash = hash * 31 + (Path?.GetHashCode() ?? 0);
|
|
hash = hash * 31 + SizeBytes.GetHashCode();
|
|
return hash;
|
|
}
|
|
}
|
|
}
|
|
}
|