mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
|
||
using System.Collections.Generic;
|
||
using MQTTnet.Packets;
|
||
|
||
namespace MQTTnet.Client.Publishing
|
||
{
|
||
public class MqttClientPublishResult
|
||
{
|
||
public ushort? PacketIdentifier { get; set; }
|
||
|
||
/// <summary>
|
||
/// Gets or sets the reason code.
|
||
/// Hint: MQTT 5 feature only.
|
||
/// </summary>
|
||
public MqttClientPublishReasonCode ReasonCode { get; set; } = MqttClientPublishReasonCode.Success;
|
||
|
||
/// <summary>
|
||
/// Gets or sets the reason string.
|
||
/// Hint: MQTT 5 feature only.
|
||
/// </summary>
|
||
public string ReasonString { get; set; }
|
||
|
||
/// <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.
|
||
/// Hint: MQTT 5 feature only.
|
||
/// </summary>
|
||
public List<MqttUserProperty> UserProperties { get; set; }
|
||
}
|
||
}
|