mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using MQTTnet.Protocol;
|
|
|
|
namespace MQTTnet
|
|
{
|
|
public class TopicFilter
|
|
{
|
|
public string Topic { get; set; }
|
|
|
|
public MqttQualityOfServiceLevel QualityOfServiceLevel { get; set; }
|
|
|
|
/// <summary>
|
|
/// This is only supported when using MQTTv5.
|
|
/// </summary>
|
|
public bool? NoLocal { get; set; }
|
|
|
|
/// <summary>
|
|
/// This is only supported when using MQTTv5.
|
|
/// </summary>
|
|
public bool? RetainAsPublished { get; set; }
|
|
|
|
/// <summary>
|
|
/// This is only supported when using MQTTv5.
|
|
/// </summary>
|
|
public MqttRetainHandling? RetainHandling { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Concat(
|
|
"TopicFilter: [Topic=",
|
|
Topic,
|
|
"] [QualityOfServiceLevel=",
|
|
QualityOfServiceLevel,
|
|
"] [NoLocal=",
|
|
NoLocal,
|
|
"] [RetainAsPublished=",
|
|
RetainAsPublished,
|
|
"] [RetainHandling=",
|
|
RetainHandling,
|
|
"]");
|
|
}
|
|
}
|
|
} |