mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 02:13:00 +08:00
24 lines
814 B
C#
24 lines
814 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace MQTTnet.Packets
|
|
{
|
|
public sealed class MqttUnsubscribePacket : MqttPacketWithIdentifier
|
|
{
|
|
public List<string> TopicFilters { get; set; } = new List<string>();
|
|
|
|
/// <summary>
|
|
/// Added in MQTTv5.
|
|
/// </summary>
|
|
public List<MqttUserProperty> UserProperties { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
var topicFiltersText = string.Join(",", TopicFilters);
|
|
return $"Unsubscribe: [PacketIdentifier={PacketIdentifier}] [TopicFilters={topicFiltersText}]";
|
|
}
|
|
}
|
|
} |