mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
27 lines
980 B
C#
27 lines
980 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;
|
|
using System.Collections.Generic;
|
|
using MQTTnet.Client;
|
|
using MQTTnet.Packets;
|
|
|
|
namespace MQTTnet.Extensions.ManagedClient
|
|
{
|
|
public sealed class UnsubscribeProcessedEventArgs : EventArgs
|
|
{
|
|
public UnsubscribeProcessedEventArgs(MqttClientUnsubscribeOptions options, MqttClientUnsubscribeResultCode result, IReadOnlyCollection<MqttUserProperty> userProperties)
|
|
{
|
|
Options = options ?? throw new ArgumentNullException(nameof(options));
|
|
Result = result;
|
|
UserProperties = userProperties;
|
|
}
|
|
|
|
public MqttClientUnsubscribeOptions Options { get; }
|
|
|
|
public MqttClientUnsubscribeResultCode Result { get; }
|
|
|
|
public IReadOnlyCollection<MqttUserProperty> UserProperties { get; }
|
|
}
|
|
} |