Refactor namespaces.

This commit is contained in:
Christian Kratky
2018-12-20 20:53:29 +01:00
parent 0dba57fe75
commit cc113a6c34
155 changed files with 3455 additions and 1083 deletions
@@ -9,7 +9,7 @@
ImplementationSpecificError = 131,
UnsupportedProtocolVersion = 132,
ClientIdentifierNotValid = 133,
BadUserNameorPassword = 134,
BadUserNameOrPassword = 134,
NotAuthorized = 135,
ServerUnavailable = 136,
ServerBusy = 137,
@@ -15,6 +15,7 @@
UnsubAck = 11,
PingReq = 12,
PingResp = 13,
Disconnect = 14
Disconnect = 14,
Auth = 15
}
}
@@ -0,0 +1,35 @@
namespace MQTTnet.Protocol
{
public enum MqttDisconnectReasonCode
{
NormalDisconnection = 0,
DisconnectWithWillMessage = 4,
UnspecifiedError = 128,
MalformedPacket = 129,
ProtocolError = 130,
ImplementationSpecificError = 131,
NotAuthorized = 135,
ServerBusy = 137,
ServerShuttingDown = 139,
KeepAliveTimeout = 141,
SessionTakenOver = 142,
TopicFilterInvalid = 143,
TopicNameInvalid = 144,
ReceiveMaximumExceeded = 147,
TopicAliasInvalid = 148,
PacketTooLarge = 149,
MessageRateTooHigh = 150,
QuotaExceeded = 151,
AdministrativeAction = 152,
PayloadFormatInvalid = 153,
RetainNotSupported = 154,
QoSNotSupported = 155,
UseAnotherServer = 156,
ServerMoved = 157,
SharedSubscriptionsNotSupported = 158,
ConnectionRateExceeded = 159,
MaximumConnectTime = 160,
SubscriptionIdentifiersNotSupported = 161,
WildcardSubscriptionsNotSupported = 162
}
}
@@ -0,0 +1,8 @@
namespace MQTTnet.Protocol
{
public enum MqttPayloadFormatIndicator
{
Unspecified = 0,
CharacterData = 1
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
namespace MQTTnet.Protocol
{
public enum MqttPropertyID
public enum MqttPropertyId
{
PayloadFormatIndicator = 1,
MessageExpiryInterval = 2,
@@ -27,7 +27,7 @@
UserProperty = 38,
MaximumPacketSize = 39,
WildcardSubscriptionAvailable = 40,
SubscriptionIdentifierAvailable = 41,
SubscriptionIdentifiersAvailable = 41,
SharedSubscriptionAvailable = 42
}
}
@@ -0,0 +1,13 @@
namespace MQTTnet.Protocol
{
public enum MqttUnsubscribeReasonCode
{
Success = 0,
NoSubscriptionExisted = 17,
UnspecifiedError = 128,
ImplementationSpecificError = 131,
NotAuthorized = 135,
TopicFilterInvalid = 143,
PacketIdentifierInUse = 145
}
}