Exemplo n.º 1
0
        private void SetupLoggedInEvents()
        {
            CreateQueue("Diginotes", Token, (model, args) =>
                        AvailableDiginotesUpdated.Invoke(this, (int)Deserialize(args))
                        );

            CreateQueue("PurchaseOrders", Token, (model, args) =>
                        PurchaseOrdersUpdated.Invoke(this, (PurchaseOrder[])Deserialize(args))
                        );

            CreateQueue("SellOrders", Token, (model, args) =>
                        SellOrdersUpdated.Invoke(this, (SellOrder[])Deserialize(args))
                        );

            CreateQueue("Transactions", Token, (model, args) =>
                        TransactionsUpdated.Invoke(this, (Transaction[])Deserialize(args))
                        );
        }
Exemplo n.º 2
0
 public SellOrder[] GetUserIncompleteSellOrders()
 {
     SellOrder[] updatedSellOrders = Server.GetUserIncompleteSellOrders(Token);
     SellOrdersUpdated.Invoke(this, updatedSellOrders);
     return(updatedSellOrders);
 }