/* * 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 ProtonVPN.Client.Logic.Connection.Contracts.Enums; using ProtonVPN.Client.Logic.Connection.Contracts.Models; namespace ProtonVPN.Client.Logic.Connection.Contracts.SerializableEntities.Intents; public class SerializableLocationIntent { public string? TypeName { get; set; } public string? CountryCode { get; set; } public string? State { get; set; } public string? City { get; set; } [Obsolete("Use Server or GatewayServer instead")] public string? Id { get; set; } [Obsolete("Use Server or GatewayServer instead")] public string? Name { get; set; } public string? GatewayName { get; set; } [Obsolete("Use Strategy instead")] public int? FreeServerType { get; set; } [Obsolete("Use ServerToExclude instead")] public string? FreeServerExcludedLogicalId { get; set; } [Obsolete("Use Strategy instead")] public string? Kind { get; set; } public bool? IsToExcludeMyCountry { get; set; } public List? CountryCodes { get; set; } public List? States { get; set; } public List? Cities { get; set; } public ServerInfo? Server { get; set; } public List? Servers { get; set; } public List? GatewayNames { get; set; } public GatewayServerInfo? GatewayServer { get; set; } public List? GatewayServers { get; set; } public SelectionStrategy? Strategy { get; set; } public ServerInfo? ServerToExclude { get; set; } }