SubRequestInfo.cs 905 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using SuperSocket.SocketBase.Protocol;
  6. namespace SuperWebSocket.SubProtocol
  7. {
  8. /// <summary>
  9. /// SubProtocol RequestInfo type
  10. /// </summary>
  11. public class SubRequestInfo : RequestInfo<string>, ISubRequestInfo
  12. {
  13. /// <summary>
  14. /// Gets the token of this request, used for callback
  15. /// </summary>
  16. public string Token { get; private set; }
  17. /// <summary>
  18. /// Initializes a new instance of the <see cref="SubRequestInfo"/> class.
  19. /// </summary>
  20. /// <param name="key">The key.</param>
  21. /// <param name="token">The token.</param>
  22. /// <param name="data">The data.</param>
  23. public SubRequestInfo(string key, string token, string data)
  24. : base(key, data)
  25. {
  26. Token = token;
  27. }
  28. }
  29. }