using System; using System.Collections.Specialized; using MediaBrowser.Model.Services; namespace MediaBrowser.Controller.Net { /// /// Class WebSocketConnectEventArgs /// public class WebSocketConnectEventArgs : EventArgs { /// /// Gets or sets the URL. /// /// The URL. public string Url { get; set; } /// /// Gets or sets the query string. /// /// The query string. public QueryParamCollection QueryString { get; set; } /// /// Gets or sets the web socket. /// /// The web socket. public IWebSocket WebSocket { get; set; } /// /// Gets or sets the endpoint. /// /// The endpoint. public string Endpoint { get; set; } } public class WebSocketConnectingEventArgs : EventArgs { /// /// Gets or sets the URL. /// /// The URL. public string Url { get; set; } /// /// Gets or sets the endpoint. /// /// The endpoint. public string Endpoint { get; set; } /// /// Gets or sets the query string. /// /// The query string. public QueryParamCollection QueryString { get; set; } /// /// Gets or sets a value indicating whether [allow connection]. /// /// true if [allow connection]; otherwise, false. public bool AllowConnection { get; set; } public WebSocketConnectingEventArgs() { QueryString = new QueryParamCollection(); AllowConnection = true; } } }