mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
31 lines
899 B
C#
31 lines
899 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;
|
|
using MQTTnet.Protocol;
|
|
|
|
namespace MQTTnet.Packets;
|
|
|
|
public sealed class MqttPubRecPacket : MqttPacketWithIdentifier
|
|
{
|
|
/// <summary>
|
|
/// Added in MQTTv5.
|
|
/// </summary>
|
|
public MqttPubRecReasonCode ReasonCode { get; set; } = MqttPubRecReasonCode.Success;
|
|
|
|
/// <summary>
|
|
/// Added in MQTTv5.
|
|
/// </summary>
|
|
public string? ReasonString { get; set; }
|
|
|
|
/// <summary>
|
|
/// Added in MQTTv5.
|
|
/// </summary>
|
|
public List<MqttUserProperty>? UserProperties { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"PubRec: [PacketIdentifier={PacketIdentifier}] [ReasonCode={ReasonCode}]";
|
|
}
|
|
} |