Examples of sellStock()


Examples of models.data.GamePlayer.sellStock()

        if(sellStockForm.hasErrors()){
            return badRequest(sellStockForm.errorsAsJson());
        }else{
            SellStock sellStock = sellStockForm.get();
            //play.Logger.info("Price: "+sellStock.price);
            if(me.sellStock(sellStock.ticker, sellStock.quantity, sellStock.price)){
                return ok(GameStateJSONFormatter.getGameStateJson(gameId));
            }else{
                return badRequest("{error: \"could not make sale!\"}");
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.