diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-05-31 12:57:57 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-05-31 12:57:57 -0500 |
| commit | c683927bd76acea7f28813ef7c80520aebdc85d8 (patch) | |
| tree | b243bf045b867c8f9c28dba08befb38d987b27a8 /src/slskd/Core/Peer/Domain/Status.cs | |
| parent | e6326c6d27c9e6aca60fed2e313d5e62c46ca5d2 (diff) | |
| download | slskd-c683927bd76acea7f28813ef7c80520aebdc85d8.tar.gz | |
implement peer functionality through PeerService
Diffstat (limited to 'src/slskd/Core/Peer/Domain/Status.cs')
| -rw-r--r-- | src/slskd/Core/Peer/Domain/Status.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/slskd/Core/Peer/Domain/Status.cs b/src/slskd/Core/Peer/Domain/Status.cs new file mode 100644 index 00000000..4db4e859 --- /dev/null +++ b/src/slskd/Core/Peer/Domain/Status.cs @@ -0,0 +1,36 @@ +// <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.Peer +{ + using Soulseek; + + public class Status + { + public bool IsPrivileged { get; init; } + public UserPresence Presence { get; init; } + + public static Status FromSoulseekUserStatus(UserStatus status) + { + return new Status() + { + IsPrivileged = status.IsPrivileged, + Presence = status.Presence, + }; + } + } +} |
