/*
* Copyright (c) 2025 Proton AG
*
* This file is part of ProtonVPN.
*
* ProtonVPN is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ProtonVPN is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ProtonVPN. If not, see .
*/
using System.Collections.Concurrent;
using ProtonVPN.Client.Settings.Contracts.Enums;
using ProtonVPN.Client.Settings.Contracts.Models;
using ProtonVPN.Common.Core.Geographical;
using ProtonVPN.Common.Core.Networking;
using ProtonVPN.Dns.Contracts;
namespace ProtonVPN.Client.Settings.Contracts;
public interface IGlobalSettings
{
string Language { get; set; }
DeviceLocation? DeviceLocation { get; set; }
string? UserId { get; set; }
string? AccessToken { get; set; }
string? RefreshToken { get; set; }
string? UniqueSessionId { get; set; }
string? UnauthAccessToken { get; set; }
string? UnauthRefreshToken { get; set; }
string? UnauthUniqueSessionId { get; set; }
bool IsAutoLaunchEnabled { get; set; }
AutoLaunchMode AutoLaunchMode { get; set; }
int[] ProTunUdpPorts { get; set; }
int[] ProTunTcpPorts { get; set; }
int[] ProTunTlsPorts { get; set; }
int[] WireGuardUdpPorts { get; set; }
int[] WireGuardTcpPorts { get; set; }
int[] WireGuardTlsPorts { get; set; }
int[] OpenVpnTcpPorts { get; set; }
int[] OpenVpnUdpPorts { get; set; }
ConcurrentDictionary? DnsCache { get; set; } // VPNWIN-2098 - Move to its own file
bool IsAlternativeRoutingEnabled { get; set; }
bool IsKillSwitchEnabled { get; set; }
bool IsBetaAccessEnabled { get; set; }
bool AreAutomaticUpdatesEnabled { get; set; }
bool IsGlobalSettingsMigrationDone { get; set; }
KillSwitchMode KillSwitchMode { get; set; }
List FeatureFlags { get; set; }
bool IsFeatureConnectedServerCheckEnabled { get; set; }
TimeSpan ConnectedServerCheckInterval { get; set; }
ChangeServerSettings ChangeServerSettings { get; set; }
bool IsShareCrashReportsEnabled { get; set; }
string? ActiveAlternativeApiBaseUrl { get; set; }
VpnProtocol[] DisabledSmartProtocols { get; set; }
int TotalCountryCount { get; set; }
int TotalServerCount { get; set; }
string? LastProcessVersionMismatchRestartVersions { get; set; }
DateTimeOffset? LastProcessVersionMismatchRestartUtcDate { get; set; }
TimeSpan WireGuardConnectionTimeout { get; set; }
bool IsEfficiencyModeAllowed { get; set; }
Dictionary>? LegacySettingsByUsername { get; set; }
}