forked from diku-dk/EventBenchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cart.cs
29 lines (20 loc) · 688 Bytes
/
Cart.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System.Text;
namespace Common.Entities
{
public class Cart
{
// no longer identified within an actor. so it requires an id
public int customerId { get; set; }
public CartStatus status { get; set; } = CartStatus.OPEN;
public IList<CartItem> items { get; set; } = new List<CartItem>();
public int instanceId { get; set; }
// to return
public List<ProductStatus> divergencies { get; set; } = new();
// for dapr
public Cart() { }
public override string ToString()
{
return new StringBuilder().Append("CustomerId : ").Append(customerId).ToString();
}
}
}