Files
flowframes/CodeLegacy/Data/QueryInfo.cs

35 lines
847 B
C#
Raw Normal View History

2021-09-14 18:18:41 +02:00
namespace Flowframes.Data
{
class QueryInfo
{
public string Path;
public long SizeBytes;
public string Command = "";
2021-09-14 18:18:41 +02:00
public QueryInfo(string path, long filesize = 0, string cmd = "")
2021-09-14 18:18:41 +02:00
{
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;
}
2021-09-14 18:18:41 +02:00
}
}
}