aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-04-26 12:43:27 -0500
committerJP Dillingham <jp@dillingham.me>2026-04-26 12:43:27 -0500
commit11f4fe864ac67cd6cba54845afc1ab943cdaa564 (patch)
tree4ccc9b5922181356edc22f3e02b1400797c1b691 /src
parentf12d89de3381c59393444b602e762ae5d8146984 (diff)
downloadslskd-11f4fe864ac67cd6cba54845afc1ab943cdaa564.tar.gz
add Batch type
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Types/Batch.cs49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/slskd/Transfers/Types/Batch.cs b/src/slskd/Transfers/Types/Batch.cs
new file mode 100644
index 00000000..820db66e
--- /dev/null
+++ b/src/slskd/Transfers/Types/Batch.cs
@@ -0,0 +1,49 @@
+// <copyright file="Batch.cs" company="JP Dillingham">
+// ▄▄▄▄ ▄▄▄▄ ▄▄▄▄
+// ▄▄▄▄▄▄█ █▄▄▄▄▄█ █▄▄▄▄▄█ █
+// █__ --█ █__ --█ ◄█ - █
+// █▄▄▄▄▄█▄▄█▄▄▄▄▄█▄▄█▄▄█▄▄▄▄▄█
+// ┍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━ ━ ━┉ ┉ ┉
+// │ Copyright (c) JP Dillingham.
+// │
+// │ 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, version 3.
+// │
+// │ 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/.
+// │
+// │ This program is distributed with Additional Terms pursuant to Section 7
+// │ of the AGPLv3. See the LICENSE file in the root directory of this
+// │ project for the complete terms and conditions.
+// │
+// │ https://slskd.org
+// │
+// ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ╌ ╌╌╌╌ ╌
+// │ SPDX-FileCopyrightText: JP Dillingham
+// │ SPDX-License-Identifier: AGPL-3.0-only
+// ╰───────────────────────────────────────────╶──── ─ ─── ─ ── ──┈ ┈
+// </copyright>
+
+namespace slskd.Transfers;
+
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+
+public class Batch
+{
+ public Guid? SearchId { get; init; } = null;
+
+ [Key]
+ public Guid Id { get; init; }
+ public string Destination { get; init; }
+ public DateTime CreatedAt { get; init; } = DateTime.UtcNow;
+
+ public ICollection<Transfer> Transfers { get; set; }
+} \ No newline at end of file