Class MqttClientSubscribeResult
- Namespace
- Azure.Iot.Operations.Protocol.Models
- Assembly
- Azure.Iot.Operations.Protocol.dll
public class MqttClientSubscribeResult
- Inheritance
-
MqttClientSubscribeResult
- Inherited Members
Constructors
MqttClientSubscribeResult(ushort, IReadOnlyCollection<MqttClientSubscribeResultItem>, string, IReadOnlyCollection<MqttUserProperty>)
public MqttClientSubscribeResult(ushort packetIdentifier, IReadOnlyCollection<MqttClientSubscribeResultItem> items, string reasonString, IReadOnlyCollection<MqttUserProperty> userProperties)
Parameters
packetIdentifier
ushortitems
IReadOnlyCollection<MqttClientSubscribeResultItem>reasonString
stringuserProperties
IReadOnlyCollection<MqttUserProperty>
Properties
Items
Gets the result for every topic filter item.
public IReadOnlyCollection<MqttClientSubscribeResultItem> Items { get; }
Property Value
PacketIdentifier
Gets the packet identifier which was used.
public ushort PacketIdentifier { get; }
Property Value
ReasonString
Gets the reason string.
public string ReasonString { get; }
Property Value
UserProperties
Gets the user properties which were part of the SUBACK packet.
public IReadOnlyCollection<MqttUserProperty> UserProperties { get; }
Property Value
Methods
IsSubAckSuccessful(MqttQualityOfServiceLevel)
public bool IsSubAckSuccessful(MqttQualityOfServiceLevel requestedQos)
Parameters
requestedQos
MqttQualityOfServiceLevel
Returns
ThrowIfNotSuccessSubAck(MqttQualityOfServiceLevel, string?)
public void ThrowIfNotSuccessSubAck(MqttQualityOfServiceLevel requestedQos, string? commandName = null)
Parameters
requestedQos
MqttQualityOfServiceLevelcommandName
string