diff options
Diffstat (limited to 'src/slskd/Relay/Types')
| -rw-r--r-- | src/slskd/Relay/Types/Agent.cs | 25 | ||||
| -rw-r--r-- | src/slskd/Relay/Types/OperationMode.cs | 40 |
2 files changed, 65 insertions, 0 deletions
diff --git a/src/slskd/Relay/Types/Agent.cs b/src/slskd/Relay/Types/Agent.cs new file mode 100644 index 00000000..3ed1767e --- /dev/null +++ b/src/slskd/Relay/Types/Agent.cs @@ -0,0 +1,25 @@ +// <copyright file="Agent.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.Relay +{ + public record Agent + { + public string Name { get; init; } + public string IPAddress { get; init; } + } +} diff --git a/src/slskd/Relay/Types/OperationMode.cs b/src/slskd/Relay/Types/OperationMode.cs new file mode 100644 index 00000000..c572f0da --- /dev/null +++ b/src/slskd/Relay/Types/OperationMode.cs @@ -0,0 +1,40 @@ +// <copyright file="OperationMode.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.Relay +{ + /// <summary> + /// The relay operation mode. + /// </summary> + public enum OperationMode + { + /// <summary> + /// Controller operation mode. + /// </summary> + Controller = 0, + + /// <summary> + /// Agent operation mode. + /// </summary> + Agent = 1, + + /// <summary> + /// Debug mode; enables operation as both a controller and agent. + /// </summary> + Debug = 2, + } +} |
