Package com.fitbit.api.common.model.activities

Examples of com.fitbit.api.common.model.activities.Activities


                                resource.getCollectionType(),
                                resource.getDate(),
                                APIFormat.JSON
                        );

                Activities entity = (Activities) entityCache.get(credentials, cacheKeyWithUserId);
                if (null != entity) {
                    log.info("Evicting entity " + cacheKeyWithUserId);
                    entityCache.remove(credentials, cacheKeyWithUserId);
                } else {
                    log.info("There is no cached version of entity " + cacheKeyWithUserId);
View Full Code Here


    protected void showHome(RequestContext context, HttpServletRequest request, HttpServletResponse response) {
        List<String> errors = new ArrayList<String>();
        if (isAuthorized(context, request)) {
            // User has token credentials. Use them to get and display user's activities and foods:
            try {
                Activities activities = context.getApiClientService().getActivities(context.getOurUser(), context.getParsedLocalDate());
                request.setAttribute("activities", activities);
            } catch (FitbitAPIException e) {
                errors.add(e.getMessage());
                log.error(e);
            }
View Full Code Here

TOP

Related Classes of com.fitbit.api.common.model.activities.Activities

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.