Compare commits
15 Commits
MAUI_Setti
...
master
Author | SHA1 | Date |
---|---|---|
|
5ba7ffaea9 | 2 years ago |
|
ab3a4bba0c | 2 years ago |
|
998dff6490 | 2 years ago |
|
2c630c77d0 | 2 years ago |
|
de4a02bcc8 | 2 years ago |
|
8f28944450 | 2 years ago |
|
f66fc1a48d | 2 years ago |
|
dded54568b | 2 years ago |
|
c2372ec447 | 2 years ago |
|
8c5a9d7b49 | 2 years ago |
|
40da19ed6f | 2 years ago |
|
91c36e266c | 2 years ago |
|
43cf7792e6 | 2 years ago |
|
f929c72194 | 2 years ago |
|
51afc1d03f | 2 years ago |
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 176 KiB |
@ -1,15 +1,14 @@
|
||||
<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="..\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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<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