mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-19 23:35:25 +03:00
update javascript connection manager to latest feature set
This commit is contained in:
30
MediaBrowser.Model/ApiClient/NetworkStatus.cs
Normal file
30
MediaBrowser.Model/ApiClient/NetworkStatus.cs
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user