123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #if (!MF_FRAMEWORK_VERSION_V4_2 && !MF_FRAMEWORK_VERSION_V4_3)
- using System;
- #else
- using Microsoft.SPOT;
- #endif
- namespace uPLibrary.Networking.M2Mqtt.Messages
- {
-
-
-
- public class MqttMsgPublishedEventArgs : EventArgs
- {
- #region Properties...
-
-
-
- public ushort MessageId
- {
- get { return this.messageId; }
- internal set { this.messageId = value; }
- }
-
-
-
- public bool IsPublished
- {
- get { return this.isPublished; }
- internal set { this.isPublished = value; }
- }
- #endregion
-
- ushort messageId;
-
- bool isPublished;
-
-
-
-
- public MqttMsgPublishedEventArgs(ushort messageId)
- : this(messageId, true)
- {
- }
-
-
-
-
-
- public MqttMsgPublishedEventArgs(ushort messageId, bool isPublished)
- {
- this.messageId = messageId;
- this.isPublished = isPublished;
- }
- }
- }
|