aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/API/DTO
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-05-20 22:25:24 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-05-20 22:25:24 -0500
commit4f1d983ad758e5533cc85648f2d489952f6975e3 (patch)
tree21fc0a309edbe5f8d5d08b0b23814f7eae856c13 /src/slskd/API/DTO
parent9c48e30741f9a3869f0871c3446c4c4435e81931 (diff)
downloadslskd-4f1d983ad758e5533cc85648f2d489952f6975e3.tar.gz
more warnings
Diffstat (limited to 'src/slskd/API/DTO')
-rw-r--r--src/slskd/API/DTO/ConnectRequest.cs19
-rw-r--r--src/slskd/API/DTO/LoginRequest.cs19
-rw-r--r--src/slskd/API/DTO/PrivateMessageResponse.cs21
-rw-r--r--src/slskd/API/DTO/QueueDownloadRequest.cs19
-rw-r--r--src/slskd/API/DTO/RoomInfoResponse.cs19
-rw-r--r--src/slskd/API/DTO/RoomMessageResponse.cs19
-rw-r--r--src/slskd/API/DTO/RoomResponse.cs21
-rw-r--r--src/slskd/API/DTO/SearchRequest.cs2
-rw-r--r--src/slskd/API/DTO/Transfer.cs21
-rw-r--r--src/slskd/API/DTO/UserAddress.cs19
-rw-r--r--src/slskd/API/DTO/UserDataResponse.cs19
11 files changed, 184 insertions, 14 deletions
diff --git a/src/slskd/API/DTO/ConnectRequest.cs b/src/slskd/API/DTO/ConnectRequest.cs
index 5d90073f..155db2da 100644
--- a/src/slskd/API/DTO/ConnectRequest.cs
+++ b/src/slskd/API/DTO/ConnectRequest.cs
@@ -1,4 +1,21 @@
-namespace slskd.API.DTO
+// <copyright file="ConnectRequest.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.API.DTO
{
public class ConnectRequest
{
diff --git a/src/slskd/API/DTO/LoginRequest.cs b/src/slskd/API/DTO/LoginRequest.cs
index 269a489b..9f3ccf2e 100644
--- a/src/slskd/API/DTO/LoginRequest.cs
+++ b/src/slskd/API/DTO/LoginRequest.cs
@@ -1,4 +1,21 @@
-namespace slskd.API.DTO
+// <copyright file="LoginRequest.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.API.DTO
{
public class LoginRequest
{
diff --git a/src/slskd/API/DTO/PrivateMessageResponse.cs b/src/slskd/API/DTO/PrivateMessageResponse.cs
index 5eddfb22..aa2b142d 100644
--- a/src/slskd/API/DTO/PrivateMessageResponse.cs
+++ b/src/slskd/API/DTO/PrivateMessageResponse.cs
@@ -1,4 +1,21 @@
-namespace slskd.API.DTO
+// <copyright file="PrivateMessageResponse.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.API.DTO
{
using System;
using slskd.Entities;
@@ -50,7 +67,7 @@
Message = privateMessage.Message,
Acknowledged = privateMessage.Acknowledged,
Replayed = privateMessage.Replayed,
- Self = self ? self: (bool?)null,
+ Self = self ? self : (bool?)null,
};
}
}
diff --git a/src/slskd/API/DTO/QueueDownloadRequest.cs b/src/slskd/API/DTO/QueueDownloadRequest.cs
index fcd279ab..a849fefa 100644
--- a/src/slskd/API/DTO/QueueDownloadRequest.cs
+++ b/src/slskd/API/DTO/QueueDownloadRequest.cs
@@ -1,4 +1,21 @@
-namespace slskd.API.DTO
+// <copyright file="QueueDownloadRequest.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.API.DTO
{
public class QueueDownloadRequest
{
diff --git a/src/slskd/API/DTO/RoomInfoResponse.cs b/src/slskd/API/DTO/RoomInfoResponse.cs
index 7ea05c0a..6f135d56 100644
--- a/src/slskd/API/DTO/RoomInfoResponse.cs
+++ b/src/slskd/API/DTO/RoomInfoResponse.cs
@@ -1,4 +1,21 @@
-namespace slskd.API.DTO
+// <copyright file="RoomInfoResponse.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.API.DTO
{
using Soulseek;
diff --git a/src/slskd/API/DTO/RoomMessageResponse.cs b/src/slskd/API/DTO/RoomMessageResponse.cs
index 19594218..520da714 100644
--- a/src/slskd/API/DTO/RoomMessageResponse.cs
+++ b/src/slskd/API/DTO/RoomMessageResponse.cs
@@ -1,4 +1,21 @@
-namespace slskd.API.DTO
+// <copyright file="RoomMessageResponse.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.API.DTO
{
using System;
using slskd.Entities;
diff --git a/src/slskd/API/DTO/RoomResponse.cs b/src/slskd/API/DTO/RoomResponse.cs
index 2921aa29..a6da7836 100644
--- a/src/slskd/API/DTO/RoomResponse.cs
+++ b/src/slskd/API/DTO/RoomResponse.cs
@@ -1,8 +1,25 @@
-namespace slskd.API.DTO
+// <copyright file="RoomResponse.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.API.DTO
{
- using slskd.Entities;
using System.Collections.Generic;
using System.Linq;
+ using slskd.Entities;
public class RoomResponse
{
diff --git a/src/slskd/API/DTO/SearchRequest.cs b/src/slskd/API/DTO/SearchRequest.cs
index eb0cd87f..147eb205 100644
--- a/src/slskd/API/DTO/SearchRequest.cs
+++ b/src/slskd/API/DTO/SearchRequest.cs
@@ -26,7 +26,7 @@ namespace slskd.API.DTO
public class SearchRequest
{
/// <summary>
- /// Gets or sets the unique search identifier
+ /// Gets or sets the unique search identifier.
/// </summary>
public Guid? Id { get; set; }
diff --git a/src/slskd/API/DTO/Transfer.cs b/src/slskd/API/DTO/Transfer.cs
index e25f30db..c3e4ac22 100644
--- a/src/slskd/API/DTO/Transfer.cs
+++ b/src/slskd/API/DTO/Transfer.cs
@@ -1,8 +1,25 @@
-namespace slskd.API.DTO
+// <copyright file="Transfer.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.API.DTO
{
- using Soulseek;
using System;
using System.Net;
+ using Soulseek;
/// <summary>
/// A single file transfer.
diff --git a/src/slskd/API/DTO/UserAddress.cs b/src/slskd/API/DTO/UserAddress.cs
index 4fe7dc4a..28a28726 100644
--- a/src/slskd/API/DTO/UserAddress.cs
+++ b/src/slskd/API/DTO/UserAddress.cs
@@ -1,4 +1,21 @@
-namespace slskd.API.DTO
+// <copyright file="UserAddress.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.API.DTO
{
/// <summary>
/// A user's IP address and port.
diff --git a/src/slskd/API/DTO/UserDataResponse.cs b/src/slskd/API/DTO/UserDataResponse.cs
index 3a96ced5..e854922e 100644
--- a/src/slskd/API/DTO/UserDataResponse.cs
+++ b/src/slskd/API/DTO/UserDataResponse.cs
@@ -1,4 +1,21 @@
-namespace slskd.API.DTO
+// <copyright file="UserDataResponse.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.API.DTO
{
using Soulseek;