Moved domain objects from the API to Domain

This commit is contained in:
James Tombleson 2023-07-23 22:50:03 -07:00
parent 5b8f0beb6e
commit 83203f967d
9 changed files with 15 additions and 18 deletions

View File

@ -1,12 +0,0 @@
using System.Collections;
namespace Newsbot.Collector.Api.Domain.Results;
public class AuthenticationResult
{
public string? Token { get; set; }
public string? RefreshToken { get; set; }
public bool IsSuccessful { get; set; }
public IEnumerable<string>? ErrorMessage { get; set; }
}

View File

@ -4,6 +4,8 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>

View File

@ -1,4 +1,4 @@
namespace Newsbot.Collector.Api.Domain.Requests;
namespace Newsbot.Collector.Domain.Requests;
public class AddRoleRequest
{

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
namespace Newsbot.Collector.Api.Domain.Requests;
namespace Newsbot.Collector.Domain.Requests;
public class RegisterUserRequest
{

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
namespace Newsbot.Collector.Api.Domain.Requests;
namespace Newsbot.Collector.Domain.Requests;
public class UserLoginRequest
{

View File

@ -1,4 +1,4 @@
namespace Newsbot.Collector.Api.Domain.Requests;
namespace Newsbot.Collector.Domain.Requests;
public class UserRefreshTokenRequest
{

View File

@ -1,4 +1,4 @@
namespace Newsbot.Collector.Api.Domain.Response;
namespace Newsbot.Collector.Domain.Response;
public class AuthFailedResponse
{

View File

@ -1,4 +1,4 @@
namespace Newsbot.Collector.Api.Domain.Response;
namespace Newsbot.Collector.Domain.Response;
public class AuthSuccessfulResponse
{

View File

@ -0,0 +1,7 @@
namespace Newsbot.Collector.Domain.Results;
public class AuthenticationResult : BaseResult
{
public string? Token { get; set; }
public string? RefreshToken { get; set; }
}