aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/ApiClient
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-02-19 12:50:05 -0500
committerLuke <luke.pulverenti@gmail.com>2015-02-19 12:50:05 -0500
commit8c09665c40776060a09655fb4ea04ec65bdffb73 (patch)
treeb1432a7315a7a7689be21fa2e3cc122350c778b2 /MediaBrowser.Model/ApiClient
parent3cce8731614e6846096bbe54fca8336e7f5d98d9 (diff)
parentf2c3dade77878b48a9a333d745e5d92a0f913233 (diff)
Merge pull request #1016 from MediaBrowser/dev
3.0.5518.5
Diffstat (limited to 'MediaBrowser.Model/ApiClient')
-rw-r--r--MediaBrowser.Model/ApiClient/IConnectionManager.cs7
-rw-r--r--MediaBrowser.Model/ApiClient/NetworkStatus.cs30
2 files changed, 37 insertions, 0 deletions
diff --git a/MediaBrowser.Model/ApiClient/IConnectionManager.cs b/MediaBrowser.Model/ApiClient/IConnectionManager.cs
index 658c71ac5..341df2728 100644
--- a/MediaBrowser.Model/ApiClient/IConnectionManager.cs
+++ b/MediaBrowser.Model/ApiClient/IConnectionManager.cs
@@ -55,6 +55,13 @@ namespace MediaBrowser.Model.ApiClient
IApiClient GetApiClient(IHasServerId item);
/// <summary>
+ /// Gets the API client.
+ /// </summary>
+ /// <param name="serverId">The server identifier.</param>
+ /// <returns>IApiClient.</returns>
+ IApiClient GetApiClient(string serverId);
+
+ /// <summary>
/// Connects the specified cancellation token.
/// </summary>
/// <param name="cancellationToken">The cancellation token.</param>
diff --git a/MediaBrowser.Model/ApiClient/NetworkStatus.cs b/MediaBrowser.Model/ApiClient/NetworkStatus.cs
new file mode 100644
index 000000000..715087607
--- /dev/null
+++ b/MediaBrowser.Model/ApiClient/NetworkStatus.cs
@@ -0,0 +1,30 @@
+
+namespace MediaBrowser.Model.ApiClient
+{
+ public class NetworkStatus
+ {
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance is network available.
+ /// </summary>
+ /// <value><c>true</c> if this instance is network available; otherwise, <c>false</c>.</value>
+ public bool IsNetworkAvailable { get; set; }
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance is local network available.
+ /// </summary>
+ /// <value><c>null</c> if [is local network available] contains no value, <c>true</c> if [is local network available]; otherwise, <c>false</c>.</value>
+ public bool? IsLocalNetworkAvailable { get; set; }
+ /// <summary>
+ /// Gets the is any local network available.
+ /// </summary>
+ /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
+ public bool GetIsAnyLocalNetworkAvailable()
+ {
+ if (!IsLocalNetworkAvailable.HasValue)
+ {
+ return IsNetworkAvailable;
+ }
+
+ return IsLocalNetworkAvailable.Value;
+ }
+ }
+}