mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
24 lines
687 B
C#
24 lines
687 B
C#
using System.Collections.Generic;
|
|
|
|
namespace MQTTnet.Packets
|
|
{
|
|
public sealed class MqttUnsubscribePacket : MqttBasePacket, IMqttPacketWithIdentifier
|
|
{
|
|
public ushort PacketIdentifier { get; set; }
|
|
|
|
public List<string> TopicFilters { get; set; } = new List<string>();
|
|
|
|
#region Added in MQTTv5
|
|
|
|
public MqttUnsubscribePacketProperties Properties { get; set; }
|
|
|
|
#endregion
|
|
|
|
public override string ToString()
|
|
{
|
|
var topicFiltersText = string.Join(",", TopicFilters);
|
|
return string.Concat("Unsubscribe: [PacketIdentifier=", PacketIdentifier, "] [TopicFilters=", topicFiltersText, "]");
|
|
}
|
|
}
|
|
}
|