diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-02-15 19:33:06 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-02-15 19:33:06 -0500 |
| commit | 8051ea9b1bebcccfa1471c1a3db0e03fd7a70bcd (patch) | |
| tree | 2d3762a3bc0b2f581043aed093d06077d75c5926 /MediaBrowser.Model/ApiClient/NetworkStatus.cs | |
| parent | 18ff8aba74593f4ad47aba5f001c812b2c9393fe (diff) | |
update javascript connection manager to latest feature set
Diffstat (limited to 'MediaBrowser.Model/ApiClient/NetworkStatus.cs')
| -rw-r--r-- | MediaBrowser.Model/ApiClient/NetworkStatus.cs | 30 |
1 files changed, 30 insertions, 0 deletions
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; + } + } +} |
