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;
        }
    }
}