MsgInternalEvent.cs 1.3 KB

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