namespace MareSynchronos.MareConfiguration.Models.Obsolete; [Serializable] [Obsolete("Deprecated, use ServerStorage")] public class ServerStorageV0 { public List Authentications { get; set; } = []; public bool FullPause { get; set; } = false; public Dictionary GidServerComments { get; set; } = new(StringComparer.Ordinal); public HashSet OpenPairTags { get; set; } = new(StringComparer.Ordinal); public Dictionary SecretKeys { get; set; } = []; public HashSet ServerAvailablePairTags { get; set; } = new(StringComparer.Ordinal); public string ServerName { get; set; } = string.Empty; public string ServerUri { get; set; } = string.Empty; public Dictionary UidServerComments { get; set; } = new(StringComparer.Ordinal); public Dictionary> UidServerPairedUserTags { get; set; } = new(StringComparer.Ordinal); public ServerStorage ToV1() { return new ServerStorage() { ServerUri = ServerUri, ServerName = ServerName, Authentications = [.. Authentications], FullPause = FullPause, SecretKeys = SecretKeys.ToDictionary(p => p.Key, p => p.Value) }; } }