Skip to content

Commit 44d4615

Browse files
committed
Move AddUserContactError.cs and thus eliminate a namespace
1 parent 9b05d95 commit 44d4615

File tree

10 files changed

+34
-43
lines changed

10 files changed

+34
-43
lines changed

Crypter.API/Controllers/UserContactController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
using Crypter.API.Controllers.Base;
3232
using Crypter.Common.Contracts;
3333
using Crypter.Common.Contracts.Features.Contacts;
34-
using Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
3534
using Crypter.Core.Features.UserContacts.Commands;
3635
using Crypter.Core.Features.UserContacts.Queries;
3736
using EasyMonads;

Crypter.Common.Client/HttpClients/Requests/UserContactRequests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
using Crypter.Common.Client.Interfaces.HttpClients;
3030
using Crypter.Common.Client.Interfaces.Requests;
3131
using Crypter.Common.Contracts.Features.Contacts;
32-
using Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
3332
using EasyMonads;
3433

3534
namespace Crypter.Common.Client.HttpClients.Requests;

Crypter.Common.Client/Interfaces/Requests/IUserContactRequests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
using System.Collections.Generic;
2828
using System.Threading.Tasks;
2929
using Crypter.Common.Contracts.Features.Contacts;
30-
using Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
3130
using EasyMonads;
3231

3332
namespace Crypter.Common.Client.Interfaces.Requests;

Crypter.Common.Client/Interfaces/Services/IUserContactsService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
using System.Collections.Generic;
2828
using System.Threading.Tasks;
2929
using Crypter.Common.Contracts.Features.Contacts;
30-
using Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
3130
using EasyMonads;
3231

3332
namespace Crypter.Common.Client.Interfaces.Services;

Crypter.Common.Client/Services/UserContactsService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
using Crypter.Common.Client.Interfaces.HttpClients;
3434
using Crypter.Common.Client.Interfaces.Services;
3535
using Crypter.Common.Contracts.Features.Contacts;
36-
using Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
3736
using EasyMonads;
3837

3938
namespace Crypter.Common.Client.Services;
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
/*
2-
* Copyright (C) 2023 Crypter File Transfer
3-
*
4-
* This file is part of the Crypter file transfer project.
5-
*
6-
* Crypter is free software: you can redistribute it and/or modify
7-
* it under the terms of the GNU Affero General Public License as published by
8-
* the Free Software Foundation, either version 3 of the License, or
9-
* (at your option) any later version.
10-
*
11-
* The Crypter source code is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU Affero General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU Affero General Public License
17-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18-
*
19-
* You can be released from the requirements of the aforementioned license
20-
* by purchasing a commercial license. Buying such a license is mandatory
21-
* as soon as you develop commercial activities involving the Crypter source
22-
* code without disclosing the source code of your own applications.
23-
*
24-
* Contact the current copyright holder to discuss commercial license options.
25-
*/
26-
27-
namespace Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
28-
29-
public enum AddUserContactError
30-
{
31-
UnknownError,
32-
NotFound,
33-
InvalidUser
34-
}
1+
/*
2+
* Copyright (C) 2023 Crypter File Transfer
3+
*
4+
* This file is part of the Crypter file transfer project.
5+
*
6+
* Crypter is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Affero General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* The Crypter source code is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Affero General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Affero General Public License
17+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*
19+
* You can be released from the requirements of the aforementioned license
20+
* by purchasing a commercial license. Buying such a license is mandatory
21+
* as soon as you develop commercial activities involving the Crypter source
22+
* code without disclosing the source code of your own applications.
23+
*
24+
* Contact the current copyright holder to discuss commercial license options.
25+
*/
26+
27+
namespace Crypter.Common.Contracts.Features.Contacts;
28+
29+
public enum AddUserContactError
30+
{
31+
UnknownError,
32+
NotFound,
33+
InvalidUser
34+
}

Crypter.Core/Features/UserContacts/Commands/AddUserContactCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
using System.Threading;
3030
using System.Threading.Tasks;
3131
using Crypter.Common.Contracts.Features.Contacts;
32-
using Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
3332
using Crypter.Core.LinqExpressions;
3433
using Crypter.Core.MediatorMonads;
3534
using Crypter.DataAccess;

Crypter.Test/Integration_Tests/UserContact_Tests/AddUserContact_Tests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
using Crypter.Common.Client.Interfaces.HttpClients;
2929
using Crypter.Common.Client.Interfaces.Repositories;
3030
using Crypter.Common.Contracts.Features.Contacts;
31-
using Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
3231
using Crypter.Common.Contracts.Features.UserAuthentication;
3332
using Crypter.Common.Enums;
3433
using EasyMonads;

Crypter.Test/Integration_Tests/UserContact_Tests/GetUserContact_Tests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
using Crypter.Common.Client.Interfaces.HttpClients;
3030
using Crypter.Common.Client.Interfaces.Repositories;
3131
using Crypter.Common.Contracts.Features.Contacts;
32-
using Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
3332
using Crypter.Common.Contracts.Features.UserAuthentication;
3433
using Crypter.Common.Enums;
3534
using EasyMonads;

Crypter.Test/Integration_Tests/UserContact_Tests/RemoveUserContact_Tests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
using Crypter.Common.Client.Interfaces.HttpClients;
3030
using Crypter.Common.Client.Interfaces.Repositories;
3131
using Crypter.Common.Contracts.Features.Contacts;
32-
using Crypter.Common.Contracts.Features.Contacts.RequestErrorCodes;
3332
using Crypter.Common.Contracts.Features.UserAuthentication;
3433
using Crypter.Common.Enums;
3534
using EasyMonads;

0 commit comments

Comments
 (0)