diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-12-16 00:01:57 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-12-16 00:01:57 -0500 |
| commit | 3c48def0d76417572193cd306846f1516e0e9038 (patch) | |
| tree | 8570bb756e024eaca9f2d5b8008e43279aa9fb23 /MediaBrowser.Model/ApiClient | |
| parent | 7f7d2f85e324bc9e2c6b170c89af0541601e8cad (diff) | |
sync updates
Diffstat (limited to 'MediaBrowser.Model/ApiClient')
| -rw-r--r-- | MediaBrowser.Model/ApiClient/ConnectionOptions.cs | 23 | ||||
| -rw-r--r-- | MediaBrowser.Model/ApiClient/IConnectionManager.cs | 9 |
2 files changed, 32 insertions, 0 deletions
diff --git a/MediaBrowser.Model/ApiClient/ConnectionOptions.cs b/MediaBrowser.Model/ApiClient/ConnectionOptions.cs new file mode 100644 index 0000000000..445eaa04ef --- /dev/null +++ b/MediaBrowser.Model/ApiClient/ConnectionOptions.cs @@ -0,0 +1,23 @@ + +namespace MediaBrowser.Model.ApiClient +{ + public class ConnectionOptions + { + /// <summary> + /// Gets or sets a value indicating whether [enable web socket]. + /// </summary> + /// <value><c>true</c> if [enable web socket]; otherwise, <c>false</c>.</value> + public bool EnableWebSocket { get; set; } + /// <summary> + /// Gets or sets a value indicating whether [report capabilities]. + /// </summary> + /// <value><c>true</c> if [report capabilities]; otherwise, <c>false</c>.</value> + public bool ReportCapabilities { get; set; } + + public ConnectionOptions() + { + EnableWebSocket = true; + ReportCapabilities = true; + } + } +} diff --git a/MediaBrowser.Model/ApiClient/IConnectionManager.cs b/MediaBrowser.Model/ApiClient/IConnectionManager.cs index 3b88366e8b..a54c330acd 100644 --- a/MediaBrowser.Model/ApiClient/IConnectionManager.cs +++ b/MediaBrowser.Model/ApiClient/IConnectionManager.cs @@ -80,6 +80,15 @@ namespace MediaBrowser.Model.ApiClient /// <summary> /// Connects the specified server. /// </summary> + /// <param name="server">The server.</param> + /// <param name="options">The options.</param> + /// <param name="cancellationToken">The cancellation token.</param> + /// <returns>Task<ConnectionResult>.</returns> + Task<ConnectionResult> Connect(ServerInfo server, ConnectionOptions options, CancellationToken cancellationToken); + + /// <summary> + /// Connects the specified server. + /// </summary> /// <param name="address">The address.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Task<ConnectionResult>.</returns> |
