From cc06d0f0f83fe3f9313a9e9e91e3cca9b8db7cf3 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 6 Sep 2022 21:59:39 -0500 Subject: add ConnectionStrings record --- src/slskd/Core/ConnectionStrings.cs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/slskd/Core/ConnectionStrings.cs (limited to 'src/slskd/Core/ConnectionStrings.cs') diff --git a/src/slskd/Core/ConnectionStrings.cs b/src/slskd/Core/ConnectionStrings.cs new file mode 100644 index 00000000..e5bd4f05 --- /dev/null +++ b/src/slskd/Core/ConnectionStrings.cs @@ -0,0 +1,29 @@ +// +// Copyright (c) slskd Team. All rights reserved. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see https://www.gnu.org/licenses/. +// + +namespace slskd +{ + /// + /// Application connection strings. + /// + public record ConnectionStrings + { + public string Transfers { get; init; } + public string Shares { get; init; } + public string Search { get; init; } + } +} -- cgit v1.2.3 From bc362491446e4bfa94b7891ac0694d4f9b35df16 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 10 Sep 2022 17:38:37 -0500 Subject: add share backup, remove Filenames --- src/slskd/Core/ConnectionStrings.cs | 1 + src/slskd/Core/Filenames.cs | 30 ------------------------------ 2 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 src/slskd/Core/Filenames.cs (limited to 'src/slskd/Core/ConnectionStrings.cs') diff --git a/src/slskd/Core/ConnectionStrings.cs b/src/slskd/Core/ConnectionStrings.cs index e5bd4f05..6afab93f 100644 --- a/src/slskd/Core/ConnectionStrings.cs +++ b/src/slskd/Core/ConnectionStrings.cs @@ -24,6 +24,7 @@ namespace slskd { public string Transfers { get; init; } public string Shares { get; init; } + public string SharesBackup { get; init; } public string Search { get; init; } } } diff --git a/src/slskd/Core/Filenames.cs b/src/slskd/Core/Filenames.cs deleted file mode 100644 index 0fc55fc5..00000000 --- a/src/slskd/Core/Filenames.cs +++ /dev/null @@ -1,30 +0,0 @@ -// -// Copyright (c) slskd Team. All rights reserved. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as published -// by the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program 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 Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see https://www.gnu.org/licenses/. -// - -namespace slskd -{ - /// - /// Application files. - /// - public static class Filenames - { - public static readonly string TransfersDb = "transfers.db"; - public static readonly string SharesDb = "shares.db"; - public static readonly string SearchDb = "search.db"; - public static readonly string BrowseCache = "browse.cache"; - } -} -- cgit v1.2.3