-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathBid.cs
32 lines (27 loc) · 805 Bytes
/
Bid.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
29
30
31
32
using System;
using System.Collections.Generic;
using System.Text;
namespace Akka.CQRS.Events
{
/// <inheritdoc />
/// <summary>
/// Represents a "buy"-side event
/// </summary>
public sealed class Bid : IWithStockId, IWithOrderId
{
public Bid(string stockId, string orderId, decimal bidPrice,
double bidQuantity, DateTimeOffset timeIssued)
{
StockId = stockId;
BidPrice = bidPrice;
BidQuantity = bidQuantity;
TimeIssued = timeIssued;
OrderId = orderId;
}
public string StockId { get; }
public decimal BidPrice { get; }
public double BidQuantity { get; }
public DateTimeOffset TimeIssued { get; }
public string OrderId { get; }
}
}