17 lines
556 B
C#
17 lines
556 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameModel
|
|
{
|
|
public record Expense(Guid Id, ExpenseType ExpenseType, ExpenseTrigger[] ExpenseTriggers, string Name, decimal Price, bool IsInverse)
|
|
{
|
|
public static Expense Create(ExpenseType ExpenseType, ExpenseTrigger[] ExpenseTriggers, string Name, decimal Price, bool IsInverse)
|
|
{
|
|
return new Expense(Guid.NewGuid(), ExpenseType, ExpenseTriggers, Name, Price, IsInverse);
|
|
}
|
|
}
|
|
}
|