Package model.forms

Examples of model.forms.SellStock


        Form<SellStock> sellStockForm = Form.form(SellStock.class).bindFromRequest();
        response().setContentType("application/json");
        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

Related Classes of model.forms.SellStock

Copyright © 2018 www.massapicom. 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.