Reorganizes project structure

This commit is contained in:
Serraniel 2023-03-01 22:06:38 +01:00
parent cc766f5d26
commit ac578a2ad6
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3
15 changed files with 30 additions and 23 deletions

View file

@ -1,6 +1,6 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace JpnCardsPokemonSdk.Api; namespace JpnCardsPokemon.Sdk.Api;
public class Card public class Card
{ {

View file

@ -1,7 +1,7 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using JpnCardsPokemonSdk.Utils.JsonConverter; using JpnCardsPokemon.Sdk.Utils.JsonConverter;
namespace JpnCardsPokemonSdk.Api; namespace JpnCardsPokemon.Sdk.Api;
public class Set public class Set
{ {

View file

@ -7,10 +7,10 @@ using System.Net.Http.Json;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using System.Threading.Tasks; using System.Threading.Tasks;
using JpnCardsPokemonSdk.Api; using JpnCardsPokemon.Sdk.Api;
using JpnCardsPokemonSdk.Utils.QueryFilter; using JpnCardsPokemon.Sdk.Utils.QueryFilter;
namespace JpnCardsPokemonSdk.Client; namespace JpnCardsPokemon.Sdk.Client;
public class ApiClient public class ApiClient
{ {

View file

@ -2,7 +2,7 @@
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace JpnCardsPokemonSdk.Utils.JsonConverter; namespace JpnCardsPokemon.Sdk.Utils.JsonConverter;
internal class NoneIntJsonConverter : JsonConverter<int> internal class NoneIntJsonConverter : JsonConverter<int>
{ {

View file

@ -3,7 +3,7 @@ using System.Net;
using System.Reflection; using System.Reflection;
using System.Text; using System.Text;
namespace JpnCardsPokemonSdk.Utils.QueryFilter; namespace JpnCardsPokemon.Sdk.Utils.QueryFilter;
public abstract class AttributedQueryFilterBuilder : IQueryFilterBuilder public abstract class AttributedQueryFilterBuilder : IQueryFilterBuilder
{ {

View file

@ -1,4 +1,4 @@
namespace JpnCardsPokemonSdk.Utils.QueryFilter; namespace JpnCardsPokemon.Sdk.Utils.QueryFilter;
public class CardQueryFilterBuilder : AttributedQueryFilterBuilder public class CardQueryFilterBuilder : AttributedQueryFilterBuilder
{ {

View file

@ -0,0 +1,6 @@
namespace JpnCardsPokemon.Sdk.Utils.QueryFilter;
public interface IQueryFilterBuilder
{
string BuildQueryString();
}

View file

@ -1,6 +1,6 @@
using System; using System;
namespace JpnCardsPokemonSdk.Utils.QueryFilter; namespace JpnCardsPokemon.Sdk.Utils.QueryFilter;
[AttributeUsage(AttributeTargets.Property)] [AttributeUsage(AttributeTargets.Property)]
public class QueryFilterNameAttribute : Attribute public class QueryFilterNameAttribute : Attribute

View file

@ -1,7 +1,7 @@
using JpnCardsPokemon.Tests.Classes; using JpnCardsPokemon.Sdk.Utils.QueryFilter;
using JpnCardsPokemonSdk.Utils.QueryFilter; using JpnCardsPokemon.Tests.Classes;
namespace JpnCardsPokemon.Tests.Tests.Tests; namespace JpnCardsPokemon.Tests;
public class CardTests : ApiTestClass public class CardTests : ApiTestClass
{ {

View file

@ -1,4 +1,4 @@
using JpnCardsPokemonSdk.Client; using JpnCardsPokemon.Sdk.Client;
namespace JpnCardsPokemon.Tests.Classes; namespace JpnCardsPokemon.Tests.Classes;

View file

@ -23,6 +23,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\JpnCardsPokemon.Sdk\JpnCardsPokemon.Sdk.csproj" />
<ProjectReference Include="..\src\JpnCardsPokemonSdk.csproj" /> <ProjectReference Include="..\src\JpnCardsPokemonSdk.csproj" />
</ItemGroup> </ItemGroup>

View file

@ -1,6 +1,6 @@
using JpnCardsPokemonSdk.Utils.QueryFilter; using JpnCardsPokemon.Sdk.Utils.QueryFilter;
namespace JpnCardsPokemon.Tests.Tests; namespace JpnCardsPokemon.Tests;
public class QueryFilterTests public class QueryFilterTests
{ {

View file

@ -1,6 +1,6 @@
using JpnCardsPokemon.Tests.Classes; using JpnCardsPokemon.Tests.Classes;
namespace JpnCardsPokemon.Tests.Tests; namespace JpnCardsPokemon.Tests;
public class SetTests : ApiTestClass public class SetTests : ApiTestClass
{ {

View file

@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.5.33318.248 VisualStudioVersion = 17.5.33318.248
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JpnCardsPokemonSdk", "src\JpnCardsPokemonSdk.csproj", "{D5C0B825-C6F2-48BB-B4C8-E416B545151E}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JpnCardsPokemon.Tests", "JpnCardsPokemon.Tests\JpnCardsPokemon.Tests.csproj", "{13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JpnCardsPokemon.Tests", "JpnCardsPokemon.Tests\JpnCardsPokemon.Tests.csproj", "{13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JpnCardsPokemon.Sdk", "JpnCardsPokemon.Sdk\JpnCardsPokemon.Sdk.csproj", "{1494A616-C934-47E4-BFD7-C45DB1B3F932}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -13,14 +13,14 @@ Global
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D5C0B825-C6F2-48BB-B4C8-E416B545151E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D5C0B825-C6F2-48BB-B4C8-E416B545151E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D5C0B825-C6F2-48BB-B4C8-E416B545151E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D5C0B825-C6F2-48BB-B4C8-E416B545151E}.Release|Any CPU.Build.0 = Release|Any CPU
{13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}.Debug|Any CPU.Build.0 = Debug|Any CPU {13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}.Release|Any CPU.ActiveCfg = Release|Any CPU {13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}.Release|Any CPU.Build.0 = Release|Any CPU {13AA15F0-0CCD-4B59-A235-5DFB5C0B6C74}.Release|Any CPU.Build.0 = Release|Any CPU
{1494A616-C934-47E4-BFD7-C45DB1B3F932}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1494A616-C934-47E4-BFD7-C45DB1B3F932}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1494A616-C934-47E4-BFD7-C45DB1B3F932}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1494A616-C934-47E4-BFD7-C45DB1B3F932}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE