19 lines
588 B
C#
19 lines
588 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameModel
|
|
{
|
|
public record PlayerExpense(Guid Id, int PlayerId, Guid ExpenseId, ExpenseType ExpenseType,
|
|
DateTime Created, decimal Price, string Name, Guid GamestateId)
|
|
{
|
|
public static PlayerExpense Create(int playerId, Expense expense)
|
|
{
|
|
return new PlayerExpense(Guid.NewGuid(), playerId, expense.Id, expense.ExpenseType,
|
|
DateTime.Now, expense.Price, expense.Name, Guid.Empty);
|
|
}
|
|
}
|
|
}
|