Merge pull request 'ApiManager' (#11) from ApiManager into master
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Reviewed-on: #11master
commit
de4a02bcc8
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DTO\DTO.csproj" />
|
||||
<ProjectReference Include="..\Model\Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,53 +1,53 @@
|
||||
using DTO;
|
||||
using Model;
|
||||
|
||||
namespace ApiLol.Mapper
|
||||
{
|
||||
public static class ChampionClassMapper
|
||||
{
|
||||
public static ChampionClassDto ToDto(this ChampionClass championClass)
|
||||
{
|
||||
switch (championClass)
|
||||
{
|
||||
case ChampionClass.Unknown:
|
||||
return ChampionClassDto.Unknown;
|
||||
case ChampionClass.Assassin:
|
||||
return ChampionClassDto.Assassin;
|
||||
case ChampionClass.Fighter:
|
||||
return ChampionClassDto.Fighter;
|
||||
case ChampionClass.Mage:
|
||||
return ChampionClassDto.Mage;
|
||||
case ChampionClass.Marksman:
|
||||
return ChampionClassDto.Marksman;
|
||||
case ChampionClass.Support:
|
||||
return ChampionClassDto.Support;
|
||||
case ChampionClass.Tank:
|
||||
return ChampionClassDto.Tank;
|
||||
default:
|
||||
return ChampionClassDto.Unknown;
|
||||
}
|
||||
}
|
||||
public static ChampionClass ToModel(this ChampionClassDto championClass)
|
||||
{
|
||||
switch (championClass)
|
||||
{
|
||||
case ChampionClassDto.Unknown:
|
||||
return ChampionClass.Unknown;
|
||||
case ChampionClassDto.Assassin:
|
||||
return ChampionClass.Assassin;
|
||||
case ChampionClassDto.Fighter:
|
||||
return ChampionClass.Fighter;
|
||||
case ChampionClassDto.Mage:
|
||||
return ChampionClass.Mage;
|
||||
case ChampionClassDto.Marksman:
|
||||
return ChampionClass.Marksman;
|
||||
case ChampionClassDto.Support:
|
||||
return ChampionClass.Support;
|
||||
case ChampionClassDto.Tank:
|
||||
return ChampionClass.Tank;
|
||||
default:
|
||||
return ChampionClass.Unknown;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
using DTO;
|
||||
using Model;
|
||||
|
||||
namespace ApiMapping.enums
|
||||
{
|
||||
public static class ChampionClassMapper
|
||||
{
|
||||
public static ChampionClassDto ToDto(this ChampionClass championClass)
|
||||
{
|
||||
switch (championClass)
|
||||
{
|
||||
case ChampionClass.Unknown:
|
||||
return ChampionClassDto.Unknown;
|
||||
case ChampionClass.Assassin:
|
||||
return ChampionClassDto.Assassin;
|
||||
case ChampionClass.Fighter:
|
||||
return ChampionClassDto.Fighter;
|
||||
case ChampionClass.Mage:
|
||||
return ChampionClassDto.Mage;
|
||||
case ChampionClass.Marksman:
|
||||
return ChampionClassDto.Marksman;
|
||||
case ChampionClass.Support:
|
||||
return ChampionClassDto.Support;
|
||||
case ChampionClass.Tank:
|
||||
return ChampionClassDto.Tank;
|
||||
default:
|
||||
return ChampionClassDto.Unknown;
|
||||
}
|
||||
}
|
||||
public static ChampionClass ToModel(this ChampionClassDto championClass)
|
||||
{
|
||||
switch (championClass)
|
||||
{
|
||||
case ChampionClassDto.Unknown:
|
||||
return ChampionClass.Unknown;
|
||||
case ChampionClassDto.Assassin:
|
||||
return ChampionClass.Assassin;
|
||||
case ChampionClassDto.Fighter:
|
||||
return ChampionClass.Fighter;
|
||||
case ChampionClassDto.Mage:
|
||||
return ChampionClass.Mage;
|
||||
case ChampionClassDto.Marksman:
|
||||
return ChampionClass.Marksman;
|
||||
case ChampionClassDto.Support:
|
||||
return ChampionClass.Support;
|
||||
case ChampionClassDto.Tank:
|
||||
return ChampionClass.Tank;
|
||||
default:
|
||||
return ChampionClass.Unknown;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,15 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ApiLol\ApiLol.csproj" />
|
||||
<ProjectReference Include="..\ApiMapping\ApiMapping.csproj" />
|
||||
<ProjectReference Include="..\DTO\DTO.csproj" />
|
||||
<ProjectReference Include="..\Model\Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Binary file not shown.
Loading…
Reference in new issue