mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 11:45:43 +08:00
Refactor manage client
This commit is contained in:
@@ -13,5 +13,15 @@ namespace MQTTnet.Core.Packets
|
||||
public string Topic { get; }
|
||||
|
||||
public MqttQualityOfServiceLevel QualityOfServiceLevel { get; }
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return QualityOfServiceLevel.GetHashCode() ^ (Topic ?? string.Empty).GetHashCode();
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Topic + "@" + QualityOfServiceLevel;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user