From 8051ea9b1bebcccfa1471c1a3db0e03fd7a70bcd Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 15 Feb 2015 19:33:06 -0500 Subject: update javascript connection manager to latest feature set --- MediaBrowser.Model/ApiClient/NetworkStatus.cs | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 MediaBrowser.Model/ApiClient/NetworkStatus.cs (limited to 'MediaBrowser.Model/ApiClient/NetworkStatus.cs') 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 + { + /// + /// Gets or sets a value indicating whether this instance is network available. + /// + /// true if this instance is network available; otherwise, false. + public bool IsNetworkAvailable { get; set; } + /// + /// Gets or sets a value indicating whether this instance is local network available. + /// + /// null if [is local network available] contains no value, true if [is local network available]; otherwise, false. + public bool? IsLocalNetworkAvailable { get; set; } + /// + /// Gets the is any local network available. + /// + /// true if XXXX, false otherwise. + public bool GetIsAnyLocalNetworkAvailable() + { + if (!IsLocalNetworkAvailable.HasValue) + { + return IsNetworkAvailable; + } + + return IsLocalNetworkAvailable.Value; + } + } +} -- cgit v1.2.3