WebSocketConnectEventArgs.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Specialized;
  3. using MediaBrowser.Model.Services;
  4. namespace MediaBrowser.Controller.Net
  5. {
  6. /// <summary>
  7. /// Class WebSocketConnectEventArgs
  8. /// </summary>
  9. public class WebSocketConnectingEventArgs : EventArgs
  10. {
  11. /// <summary>
  12. /// Gets or sets the URL.
  13. /// </summary>
  14. /// <value>The URL.</value>
  15. public string Url { get; set; }
  16. /// <summary>
  17. /// Gets or sets the endpoint.
  18. /// </summary>
  19. /// <value>The endpoint.</value>
  20. public string Endpoint { get; set; }
  21. /// <summary>
  22. /// Gets or sets the query string.
  23. /// </summary>
  24. /// <value>The query string.</value>
  25. public QueryParamCollection QueryString { get; set; }
  26. /// <summary>
  27. /// Gets or sets a value indicating whether [allow connection].
  28. /// </summary>
  29. /// <value><c>true</c> if [allow connection]; otherwise, <c>false</c>.</value>
  30. public bool AllowConnection { get; set; }
  31. public WebSocketConnectingEventArgs()
  32. {
  33. QueryString = new QueryParamCollection();
  34. AllowConnection = true;
  35. }
  36. }
  37. }