internal object GetAvailableDiginotes() { int diginotes = Server.GetAvailableDiginotes(Token); AvailableDiginotesUpdated.Invoke(this, diginotes); return(diginotes); }
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)) ); }