idk why it works now, help

This commit is contained in:
2023-03-20 19:13:33 +01:00
parent cc6a7aa6d2
commit 8f153fd2b9
15 changed files with 16 additions and 32 deletions

View File

@@ -1,30 +0,0 @@
namespace MauMau_Server.Mau;
public class CardDTO
{
public string CardType { get; set; }
public string CardValue { get; set; }
public CardDTO(Card card)
{
CardType = card.CardType.ToString();
CardValue = card.CardValue.ToString();
}
public CardDTO(string cardType, string cardValue)
{
CardType = cardType;
CardValue = cardValue;
}
public CardDTO()
{
}
public Card ToCard()
{
return new Card((CardType)Enum.Parse(typeof(CardType), CardType),
(CardValue)Enum.Parse(typeof(CardValue), CardValue));
}
}