mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 02:13:00 +08:00
25 lines
773 B
C#
25 lines
773 B
C#
using System;
|
|
|
|
namespace MQTTnet.Client.Unsubscribing
|
|
{
|
|
public class MqttClientUnsubscribeResultItem
|
|
{
|
|
public MqttClientUnsubscribeResultItem(string topicFilter, MqttClientUnsubscribeResultCode reasonCode)
|
|
{
|
|
TopicFilter = topicFilter ?? throw new ArgumentNullException(nameof(topicFilter));
|
|
ReasonCode = reasonCode;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the topic filter.
|
|
/// The topic filter can contain topics and wildcards.
|
|
/// </summary>
|
|
public string TopicFilter { get; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the result code.
|
|
/// Hint: MQTT 5 feature only.
|
|
/// </summary>
|
|
public MqttClientUnsubscribeResultCode ReasonCode { get; }
|
|
}
|
|
} |