mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-23 13:23:05 +08:00
Rename "QualityOfServiceLevel" to SubscriptionQualityOfServiceLevel where appropriated to make the difference between the two different QoS fields more clear
This commit is contained in:
committed by
Sallin Marc, I212
parent
cf217034fa
commit
b0c603082b
@@ -392,7 +392,7 @@ namespace MQTTnet.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
publishPacket = _dataConverter.CreatePublishPacket(queuedApplicationMessage.ApplicationMessage);
|
publishPacket = _dataConverter.CreatePublishPacket(queuedApplicationMessage.ApplicationMessage);
|
||||||
publishPacket.QualityOfServiceLevel = queuedApplicationMessage.QualityOfServiceLevel;
|
publishPacket.QualityOfServiceLevel = queuedApplicationMessage.SubscriptionQualityOfServiceLevel;
|
||||||
|
|
||||||
// Set the retain flag to true according to [MQTT-3.3.1-8] and [MQTT-3.3.1-9].
|
// Set the retain flag to true according to [MQTT-3.3.1-8] and [MQTT-3.3.1-9].
|
||||||
publishPacket.Retain = queuedApplicationMessage.IsRetainedMessage;
|
publishPacket.Retain = queuedApplicationMessage.IsRetainedMessage;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace MQTTnet.Server
|
|||||||
{
|
{
|
||||||
ApplicationMessage = applicationMessage,
|
ApplicationMessage = applicationMessage,
|
||||||
SenderClientId = senderClientId,
|
SenderClientId = senderClientId,
|
||||||
QualityOfServiceLevel = qualityOfServiceLevel,
|
SubscriptionQualityOfServiceLevel = qualityOfServiceLevel,
|
||||||
IsRetainedMessage = isRetainedMessage
|
IsRetainedMessage = isRetainedMessage
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using MQTTnet.Protocol;
|
using System;
|
||||||
|
using MQTTnet.Protocol;
|
||||||
|
|
||||||
namespace MQTTnet.Server
|
namespace MQTTnet.Server
|
||||||
{
|
{
|
||||||
@@ -10,7 +11,14 @@ namespace MQTTnet.Server
|
|||||||
|
|
||||||
public bool IsRetainedMessage { get; set; }
|
public bool IsRetainedMessage { get; set; }
|
||||||
|
|
||||||
public MqttQualityOfServiceLevel QualityOfServiceLevel { get; set; }
|
public MqttQualityOfServiceLevel SubscriptionQualityOfServiceLevel { get; set; }
|
||||||
|
|
||||||
|
[Obsolete("Use 'SubscriptionQualityOfServiceLevel' instead.")]
|
||||||
|
public MqttQualityOfServiceLevel QualityOfServiceLevel
|
||||||
|
{
|
||||||
|
get => SubscriptionQualityOfServiceLevel;
|
||||||
|
set => SubscriptionQualityOfServiceLevel = value;
|
||||||
|
}
|
||||||
|
|
||||||
public bool IsDuplicate { get; set; }
|
public bool IsDuplicate { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user