MqttMsgConnectEventArgs.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 CONNECT message received from client
  22. /// </summary>
  23. public class MqttMsgConnectEventArgs : EventArgs
  24. {
  25. /// <summary>
  26. /// Message received from client
  27. /// </summary>
  28. public MqttMsgConnect Message { get; private set; }
  29. /// <summary>
  30. /// Constructor
  31. /// </summary>
  32. /// <param name="msg">CONNECT message received from client</param>
  33. public MqttMsgConnectEventArgs(MqttMsgConnect connect)
  34. {
  35. this.Message = connect;
  36. }
  37. }
  38. }