Compare commits
No commits in common. 'master' and 'MAUI_Settings' have entirely different histories.
master
...
MAUI_Setti
Binary file not shown.
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 176 KiB |
@ -1,53 +1,53 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
<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>
|
@ -1,14 +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="..\DTO\DTO.csproj" />
|
||||
<ProjectReference Include="..\Model\Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Binary file not shown.
Loading…
Reference in new issue