Lots of data and model setup
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using MessagePack;
|
||||
using SVSim.Database.Models;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos;
|
||||
|
||||
@@ -19,4 +20,15 @@ public class UserCard : CardIdentifier
|
||||
/// </summary>
|
||||
[Key("is_protected")]
|
||||
public int IsProtected { get; set; }
|
||||
|
||||
public UserCard(OwnedCardEntry card)
|
||||
{
|
||||
this.CardId = card.Card.Id;
|
||||
this.Count = card.Count;
|
||||
this.IsProtected = card.IsProtected ? 1 : 0;
|
||||
}
|
||||
|
||||
public UserCard()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user