diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-06-26 15:37:34 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-06-26 15:37:34 -0500 |
| commit | 851dcdfa4824d6b06287959d89484db16f3a4d91 (patch) | |
| tree | 34b81882a6fff569bcbad21f5a3715f9887f0595 /src/slskd/Users/Domain | |
| parent | 093d75736d19c9e353368bc890d7f74cfd7e5bf0 (diff) | |
| download | slskd-851dcdfa4824d6b06287959d89484db16f3a4d91.tar.gz | |
move stuff again
Diffstat (limited to 'src/slskd/Users/Domain')
| -rw-r--r-- | src/slskd/Users/Domain/Info.cs | 29 | ||||
| -rw-r--r-- | src/slskd/Users/Domain/Statistics.cs | 42 | ||||
| -rw-r--r-- | src/slskd/Users/Domain/Status.cs | 37 | ||||
| -rw-r--r-- | src/slskd/Users/Domain/User.cs | 42 |
4 files changed, 0 insertions, 150 deletions
diff --git a/src/slskd/Users/Domain/Info.cs b/src/slskd/Users/Domain/Info.cs deleted file mode 100644 index e3969f17..00000000 --- a/src/slskd/Users/Domain/Info.cs +++ /dev/null @@ -1,29 +0,0 @@ -// <copyright file="Info.cs" company="slskd Team"> -// 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/. -// </copyright> - -namespace slskd.Users -{ - public record Info - { - public string Description { get; init; } - public bool HasFreeUploadSlot { get; init; } - public bool HasPicture { get; init; } - public byte[] Picture { get; init; } - public int QueueLength { get; init; } - public int UploadSlots { get; init; } - } -} diff --git a/src/slskd/Users/Domain/Statistics.cs b/src/slskd/Users/Domain/Statistics.cs deleted file mode 100644 index a415d3d5..00000000 --- a/src/slskd/Users/Domain/Statistics.cs +++ /dev/null @@ -1,42 +0,0 @@ -// <copyright file="Statistics.cs" company="slskd Team"> -// 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/. -// </copyright> - -namespace slskd.Users -{ - public record Statistics - { - /// <summary> - /// Gets the average upload speed of the user. - /// </summary> - public int AverageSpeed { get; init; } - - /// <summary> - /// Gets the number of directories shared by the user. - /// </summary> - public int DirectoryCount { get; init; } - - /// <summary> - /// Gets the number of files shared by the user. - /// </summary> - public int FileCount { get; init; } - - /// <summary> - /// Gets the number of uploads tracked by the server for this user. - /// </summary> - public long UploadCount { get; init; } - } -} diff --git a/src/slskd/Users/Domain/Status.cs b/src/slskd/Users/Domain/Status.cs deleted file mode 100644 index 890afb74..00000000 --- a/src/slskd/Users/Domain/Status.cs +++ /dev/null @@ -1,37 +0,0 @@ -// <copyright file="Status.cs" company="slskd Team"> -// 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/. -// </copyright> - -namespace slskd.Users -{ - using Soulseek; - - /// <summary> - /// User status. - /// </summary> - public record Status - { - /// <summary> - /// Gets a value indicating whether the user is privileged. - /// </summary> - public bool IsPrivileged { get; init; } - - /// <summary> - /// Gets the user's presence. - /// </summary> - public UserPresence Presence { get; init; } - } -} diff --git a/src/slskd/Users/Domain/User.cs b/src/slskd/Users/Domain/User.cs deleted file mode 100644 index 2913620c..00000000 --- a/src/slskd/Users/Domain/User.cs +++ /dev/null @@ -1,42 +0,0 @@ -// <copyright file="User.cs" company="slskd Team"> -// 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/. -// </copyright> - -namespace slskd.Users -{ - public record User - { - /// <summary> - /// Gets the username of the user. - /// </summary> - public string Username { get; init; } - - /// <summary> - /// Gets the user's configured group. - /// </summary> - public string Group { get; init; } - - /// <summary> - /// Gets the user's statistics. - /// </summary> - public Statistics Statistics { get; init; } - - /// <summary> - /// Gets the user's status. - /// </summary> - public Status Status { get; init; } - } -} |
