MsgInternalEvent.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. using uPLibrary.Networking.M2Mqtt.Messages;
  14. namespace uPLibrary.Networking.M2Mqtt.Internal
  15. {
  16. /// <summary>
  17. /// Internal event with a message
  18. /// </summary>
  19. public class MsgInternalEvent : InternalEvent
  20. {
  21. #region Properties ...
  22. /// <summary>
  23. /// Related message
  24. /// </summary>
  25. public MqttMsgBase Message
  26. {
  27. get { return this.msg; }
  28. set { this.msg = value; }
  29. }
  30. #endregion
  31. // related message
  32. protected MqttMsgBase msg;
  33. /// <summary>
  34. /// Constructor
  35. /// </summary>
  36. /// <param name="msg">Related message</param>
  37. public MsgInternalEvent(MqttMsgBase msg)
  38. {
  39. this.msg = msg;
  40. }
  41. }
  42. }