Package com.nabalive.application.core

Examples of com.nabalive.application.core.Application.onStartup()


        while (iterator.hasNext()) {
            Nabaztag nabaztag = iterator.next();
            Status status = connectionManager.get(nabaztag.getMacAddress());
            if (status != null && !status.isAsleep()) {
                try {
                    application.onStartup(nabaztag, findConfig(CLOCK_APIKEY, nabaztag.getApplicationConfigList()));
                } catch (Exception e) {
                    logger.debug("cannot send message", e);
                }
            }
        }
View Full Code Here


            Nabaztag nabaztag = iterator.next();
            Status status = connectionManager.get(nabaztag.getMacAddress());
            if (status != null && status.isIdle()) {
                if (rand.nextInt(4) == 0){
                    try {
                        application.onStartup(nabaztag, findConfig(MOOD_APIKEY, nabaztag.getApplicationConfigList()));
                    } catch (Exception e) {
                        logger.debug("cannot send message", e);
                    }
                }
            }
View Full Code Here

            Nabaztag nabaztag = iterator.next();
            Status status = connectionManager.get(nabaztag.getMacAddress());
            if (status != null && status.isIdle()) {
                if (rand.nextInt(4) == 0){
                    try {
                        application.onStartup(nabaztag, findConfig(TAICHI_APIKEY, nabaztag.getApplicationConfigList()));
                    } catch (Exception e) {
                        logger.debug("cannot send message", e);
                    }
                }
            }
View Full Code Here

                                if (applicationConfig.getTags().contains(tagValue)) {
                                    String apikey = applicationConfig.getApplicationStoreApikey();
                                    Application application = applicationManager.getApplication(apikey);

                                    applicationConfig.getParameters().put("__RFID__", (new ImmutableList.Builder<String>()).add(tagValue).build());
                                    application.onStartup(nabaztag, applicationConfig);
                                    response.write("ok");
                                    return;
                                }
                            }
                            nabaztagController.tts(nabaztag.getMacAddress(), host, "fr", "Aucune application associée au tag");
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.