mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
* Add feature validation. * Update ReleaseNotes.md * Add validators or subscribe and unsubscribe. * Add feature validation for disconnect. * Fix build errors. * Fix build errors Co-authored-by: HansM <HansM2013@gmx.de>
29 lines
1.3 KiB
C#
29 lines
1.3 KiB
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;
|
||
using MQTTnet.Packets;
|
||
|
||
namespace MQTTnet.Client
|
||
{
|
||
public sealed class MqttClientUnsubscribeOptions
|
||
{
|
||
/// <summary>
|
||
/// Gets or sets a list of topic filters the client wants to unsubscribe from.
|
||
/// Topic filters can include regular topics or wild cards.
|
||
/// </summary>
|
||
public List<string> TopicFilters { get; set; } = new List<string>();
|
||
|
||
/// <summary>
|
||
/// Gets or sets the user properties.
|
||
/// In MQTT 5, user properties are basic UTF-8 string key-value pairs that you can append to almost every type of MQTT
|
||
/// packet.
|
||
/// As long as you don’t exceed the maximum message size, you can use an unlimited number of user properties to add
|
||
/// metadata to MQTT messages and pass information between publisher, broker, and subscriber.
|
||
/// The feature is very similar to the HTTP header concept.
|
||
/// <remarks>MQTT 5.0.0+ feature.</remarks>
|
||
/// </summary>
|
||
public List<MqttUserProperty> UserProperties { get; set; }
|
||
}
|
||
} |