initial commit
This commit is contained in:
24
SquiddlerDomain/PlayedWords.cs
Normal file
24
SquiddlerDomain/PlayedWords.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Squiddler.Domain;
|
||||
|
||||
public class PlayedWords
|
||||
{
|
||||
[JsonPropertyName("words")]
|
||||
[JsonRequired]
|
||||
List<List<Card>> Words {get;}
|
||||
|
||||
[JsonPropertyName("unused")]
|
||||
List<Card> Unused {get;}
|
||||
|
||||
[JsonPropertyName("discarded")]
|
||||
[JsonRequired]
|
||||
Card Discarded {get;}
|
||||
|
||||
public PlayedWords(IEnumerable<IEnumerable<Card>> words, IEnumerable<Card> unused, Card discarded)
|
||||
{
|
||||
Words = words.Select(word => word.ToList()).ToList();
|
||||
Unused = unused.ToList();
|
||||
Discarded = discarded;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user