MqttMsgUnsubscribedEventArgs.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. Copyright (c) 2013, 2014 Paolo Patierno
  3. All rights reserved. This program and the accompanying materials
  4. are made available under the terms of the Eclipse Public License v1.0
  5. and Eclipse Distribution License v1.0 which accompany this distribution.
  6. The Eclipse Public License is available at
  7. http://www.eclipse.org/legal/epl-v10.html
  8. and the Eclipse Distribution License is available at
  9. http://www.eclipse.org/org/documents/edl-v10.php.
  10. Contributors:
  11. Paolo Patierno - initial API and implementation and/or initial documentation
  12. */
  13. #if (!MF_FRAMEWORK_VERSION_V4_2 && !MF_FRAMEWORK_VERSION_V4_3)
  14. using System;
  15. #else
  16. using Microsoft.SPOT;
  17. #endif
  18. namespace uPLibrary.Networking.M2Mqtt.Messages
  19. {
  20. /// <summary>
  21. /// Event Args class for unsubscribed topic
  22. /// </summary>
  23. public class MqttMsgUnsubscribedEventArgs : EventArgs
  24. {
  25. #region Properties...
  26. /// <summary>
  27. /// Message identifier
  28. /// </summary>
  29. public ushort MessageId
  30. {
  31. get { return this.messageId; }
  32. internal set { this.messageId = value; }
  33. }
  34. #endregion
  35. // message identifier
  36. ushort messageId;
  37. /// <summary>
  38. /// Constructor
  39. /// </summary>
  40. /// <param name="messageId">Message identifier for unsubscribed topic</param>
  41. public MqttMsgUnsubscribedEventArgs(ushort messageId)
  42. {
  43. this.messageId = messageId;
  44. }
  45. }
  46. }