Ejemplo n.º 1
0
 public Bid(Customer customer, Sneaker sneaker, double size, double price)
 {
     TypeTransaction = "Bid";
     Price           = price;
     Size            = size;
     Customer        = customer;
     Customer.Bids.Add(this);
     Sneaker = sneaker;
     Sneaker.Bids.Add(this);
 }
Ejemplo n.º 2
0
 public Ask(Customer customer, Sneaker sneaker, double size, double price)
 {
     TypeTransaction = "Ask";
     Price           = price;
     Size            = size;
     Customer        = customer;
     Customer.Asks.Add(this);
     Sneaker = sneaker;
     Sneaker.Asks.Add(this);
     Sneaker.AddStock(size, 1);
 }
Ejemplo n.º 3
0
 public void AddSneaker(Sneaker sneaker)
 {
     sneaker.Brand = this;
     Sneakers.Add(sneaker);
 }
Ejemplo n.º 4
0
 public void AddAsk(Sneaker sneaker, double size, double price)
 {
     Asks.Add(new Ask(this, sneaker, size, price));
 }
Ejemplo n.º 5
0
 public void AddBid(Sneaker sneaker, double size, double price)
 {
     Bids.Add(new Bid(this, sneaker, size, price));
 }