123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #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 MqttMsgPublishEventArgs : EventArgs
- {
- #region Properties...
-
-
-
- public string Topic
- {
- get { return this.topic; }
- internal set { this.topic = value; }
- }
-
-
-
- public byte[] Message
- {
- get { return this.message; }
- internal set { this.message = value; }
- }
-
-
-
- public bool DupFlag
- {
- get { return this.dupFlag; }
- set { this.dupFlag = value; }
- }
-
-
-
- public byte QosLevel
- {
- get { return this.qosLevel; }
- internal set { this.qosLevel = value; }
- }
-
-
-
- public bool Retain
- {
- get { return this.retain; }
- internal set { this.retain = value; }
- }
- #endregion
-
- private string topic;
-
- private byte[] message;
-
- private bool dupFlag;
-
- private byte qosLevel;
-
- private bool retain;
-
-
-
-
-
-
-
-
- public MqttMsgPublishEventArgs(string topic,
- byte[] message,
- bool dupFlag,
- byte qosLevel,
- bool retain)
- {
- this.topic = topic;
- this.message = message;
- this.dupFlag = dupFlag;
- this.qosLevel = qosLevel;
- this.retain = retain;
- }
- }
- }
|