mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
18 lines
549 B
C#
18 lines
549 B
C#
using System.Collections.Generic;
|
|
|
|
namespace MQTTnet.Packets
|
|
{
|
|
public sealed class MqttUnsubscribePacket : MqttBasePacket, IMqttPacketWithIdentifier
|
|
{
|
|
public ushort PacketIdentifier { get; set; }
|
|
|
|
public IList<string> TopicFilters { get; set; } = new List<string>();
|
|
|
|
public override string ToString()
|
|
{
|
|
var topicFiltersText = string.Join(",", TopicFilters);
|
|
return "Subscribe: [PacketIdentifier=" + PacketIdentifier + "] [TopicFilters=" + topicFiltersText + "]";
|
|
}
|
|
}
|
|
}
|